3 ms·
All of the loops could be written recursively, but that'd be rather atypical for solving this problem in C.
by tedunangst 15y ago
All of the loops could be written recursively, but that'd be rather atypical for solving this problem in C.
- eru 15y agoThough with gcc and tail recursion it wouldn't make a difference to the generated code.