![]() |
"sum it up" -- solution is wrong The solution is wrong because the sum of n numbers takes a storage amount which is proportional to n. The solution given states that the sum actually takes constant space.
Tim
To be atrociously pedantic, storage is log base 2 of n, which might as well be constant for numbers mere mortals use.
Jason McCullough
|