DEV Community

Discussion on: Find the Duplicate Number

Collapse
 
melvincarvalho profile image
Melvin Carvalho

Do look at the other functions in 1loc.dev

I liked this trick:

++prev[curr] || 1