DEV Community

Discussion on: Find duplicates algorithm series- A SORTED array as an input.

Collapse
 
s_awdesh profile image
Awdesh

That is not the correct sample data set for this problem as problem statement specifies that input array must be sorted.

Although I realized that repl was pointing to code base of different problem.I have attached a right code base now.

Collapse
 
_hs_ profile image
HS

Yeah I was using repl code example and just changed last element. Was pointing this out because I know some people learning Java will try stuff with the code and be confused about results.