• + 0 comments

    I did the same thing but it took me a lot of time in finding the count of the numbers in O(n) complexity.

    There is a pattern in finding the number of times an element repeats