3 ms·
> It's so naturally a two-case problem that I'd be really surprised if anyone came up with the one-case answer first. [Raises hand] I always did it Linus' way
by apk17 10y ago
> It's so naturally a two-case problem that I'd be really surprised if anyone came up with the one-case answer first.
[Raises hand] I always did it Linus' way in C (way before him); I don't remember if I ever had the need in assembly before.
- Smaug123 10y agoFair enough. I stand surprised! How would you describe the algorithm to a friend, then?