• + 0 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.