4 ms·
math scales programming compare j=n*(n+1)/2 to for i in range(n+1): j+=i the former being math and the latter programming for solving summation from 0 to n
by hs 18y ago
math scales programming
compare j=n*(n+1)/2 to for i in range(n+1): j+=i
the former being math and the latter programming for solving summation from 0 to n