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
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
No comments yet.