DEV Community

Discussion on: A common coding interview question

 
thorstenhirsch profile image
Thorsten Hirsch

Yes, I've looked up how Set works and you're right. Thanks for clarifying.

Another cool solution (but not as readable as yours) however is this "destructive" one on SO.