Re:I cheated on my Microsoft interview (2019)
by not2b on Sunday June 05, 2022 @02:36PM
(#31633652)
There's a famous story about Gauss as a child (age 7 in some accounts) figuring out this trick when a teacher who probably wanted a break had the students add up the numbers from 1 to 100. He saw that you could combine numbers from the ends: 1+100=101, 2+99=101, and there are 50 pairs, so the answer is 5050.
[ Parent
| on HN ]
Re:I cheated on my Microsoft interview (2019)
by SilasX on Sunday June 05, 2022 @04:59PM
(#31634793)
There's also the joke that John von Neumann was given this task and "cheated" by just instantly adding all the numbers in his head the naive way, without having to write anything down.
Re:I cheated on my Microsoft interview (2019)
by jacobolus on Sunday June 05, 2022 @05:39PM
(#31635081)
The traditional story is about calculating the distance a fly (or bird?) travels if it goes back and forth between two trains. https://jcdverha.home.xs4all.nl/scijokes/10.html#Neumann_4