re: Tackling Algorithms: Counting Unique Values VIEW POST

TOP OF THREAD FULL DISCUSSION
re: What happens when the array isn't pre-sorted?
 

If it's not pre-sorted you have to use a different approach - the multiple pointers approach won't work.

code of conduct - report abuse