loading...

re: Tackling Algorithms: Counting Unique Values VIEW POST

FULL DISCUSSION
 

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