You are viewing a single comment's thread. Return to all comments →
Hey, This solution satisfies all the test cases but consider this case
7 1 1 2 2 3 3 3
The output will be 4 instead it should be 5 as the array will be [2.2,3,3,3]
Please let me know if I am wrong.
Seems like cookies are disabled on this browser, please enable them to open this website
Picking Numbers
You are viewing a single comment's thread. Return to all comments →
Hey, This solution satisfies all the test cases but consider this case
7
1 1 2 2 3 3 3
The output will be 4 instead it should be 5 as the array will be [2.2,3,3,3]
Please let me know if I am wrong.