Skip to content
loading...

re: Find duplicates algorithm series- A SORTED array as an input. VIEW POST

TOP OF THREAD FULL DISCUSSION
re: Referring to the example above, wouldn't this give us 4 twice in the duplicates table?
 

you are right, I should check if item already exists inside the duplicate list. I have updated the code and attached repl.
Thanks for the feedback.

code of conduct - report abuse