5 ms·
> 2018 - 1995 = 8 + 15. Now I too start with the addition, but my brain very much thinks in the vertical stacking of the numbers, moving right to left. How do
by huffmsa 9y ago
> 2018 - 1995 = 8 + 15.
Now I too start with the addition, but my brain very much thinks in the vertical stacking of the numbers, moving right to left.
How do we get from 5 to 8? Add 3, how do we get from 9 to 1 when adding: plus 2. How do we get from 9 to 0: plus 1, which we already have from the 9 to 1 case, so we pass the 1 here to the left. 1 to 2, plus 1, again using the value passed to us.
Little surprise I prefer functional languages.