Hacker News new | ask | show | jobs
by cdelsolar 1411 days ago
How is this tough? Use a dict?

Edit: or even easier, because I didn't read the question properly the first time, sum all the numbers from 1 to n (use Euler's trick for extra points) and sum your array and take the difference.

1 comments

The original challenge didn't include the "only one" repeated number part, btw