3 ms·
200010000 not 199990000 probably the author looped on a 0-based index. n*(n+1)/2 is even better ^^ Nice post mortem though
by hamzalive 10y ago
200010000 not 199990000 probably the author looped on a 0-based index. n*(n+1)/2 is even better ^^
Nice post mortem though