3 ms·
Interesting note is that the clever solution fails pretty early: 999999999999999 (15 nines) outputs 16. I hope the author warned the students about floating po
by quirino 2y ago
Interesting note is that the clever solution fails pretty early: 999999999999999 (15 nines) outputs 16.
I hope the author warned the students about floating point imprecision :P