Count Triplets

  • + 1 comment

    Question:

    Theres a constraint saying i < j < k.

    In this case then the test case where the given ratio is 1 then the answer should be automatically 0 no? Since a number multiplied by 1 is the same number, the triplets would be i = j = k. I am failing a test (where I get a completely different result than expected) and when I look at it its just a huge array with the same number and ratio = 1. but according to this logicall triplets should have the same number, which doesnt satisfy the i < j < k requirement