3 ms·
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 t
by cdelsolar 4y 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.
- Faark 4y agoThe original challenge didn't include the "only one" repeated number part, btw