Open tigertv opened 4 years ago
Hi!
Make it faster.
No loops. It uses sum of arithmetic progression.
https://tio.run/ gives that
Real time: 0.340 s User time: 0.271 s Sys. time: 0.061 s CPU share: 97.96 % Exit code: 0
Hi!
Make it faster.
How the solution works
No loops. It uses sum of arithmetic progression.
Performance
https://tio.run/ gives that