We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
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
Count Triplets
You are viewing a single comment's thread. Return to all comments →
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