DEV Community

Discussion on: Find the Duplicate Number

Collapse
 
ashking profile image
Ashwin

This is good!

Collapse
 
melvincarvalho profile image
Melvin Carvalho

Do look at the other functions in 1loc.dev

I liked this trick:

++prev[curr] || 1