4 ms·
A CS 101 student apparently writes the most readable code.
by benvds 13y ago
A CS 101 student apparently writes the most readable code.
- UK-AL 13y agoHas time to think.
- smtbsrn 13y agoignorance is bliss
- dsego 13y agoExcept it is not correct.
- Apocryphon 13y agoI like how both the student and the Startup hacker mess up bounds-checking, except the student doesn't realize it in the initial case, and the hacker misses it as the codebase gets progressively larger and he or she gets more tired.
- cheapsteak 13y agoI don't get it, what's incorrect about the code?
- dsego 13y agoTry calling the function with 0 or a negative number.
- marcosdumay 13y agoIt's slower than the mathematician's, and does not handle all error cases. No wonder it looks cleaner.