r/programming • u/svpino • May 08 '15
Five programming problems every Software Engineer should be able to solve in less than 1 hour
https://blog.svpino.com/2015/05/07/five-programming-problems-every-software-engineer-should-be-able-to-solve-in-less-than-1-hour
2.5k
Upvotes
2
u/Lawtonfogle May 08 '15
For recursion, 1 to 100 would fry the computer. As lengau pointed out, you can get to the 30s before you notice lag. But even if it stopped increasing in scale, by the time you got to 100 it would be about a hundred billion billion times slower. So even if it only took at millisecond to do the 30 billion recursions, all life would be dead before it did just the last one.