DEV Community

loading...

Discussion on: Daily Challenge #273 - Remove Duplicates

Collapse
jpantunes profile image
JP Antunes

I had my doubts, but it seems the JS implementation uses a linear search algorithm.

FWIW, I also had to check if Sets keep insertion ordering since in principle they shouldn't... but in JS they do!

Thread Thread
vinaypai profile image
Vinay Pai

Good to know, I didn't know that was actual documented behavior of the Set.