|
|
|
|
|
by tialaramex
1520 days ago
|
|
Seems to me the good news is that your compiler told you this doesn't work. In languages where you can't tell the compiler you think this is constant, there's a risk you delude yourself, especially because computers are very fast, and you think you've got O(1) when it's actually O(N) or even O(N^2) and one day N gets big enough and you're in real trouble. |
|
Those examples for HN recreation naturally weren't written with such care.