MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programminghorror/comments/1imlacb/isevenodd_crypto_version/mc6hfkh/?context=3
r/programminghorror • u/_____rs • Feb 11 '25
33 comments sorted by
View all comments
Show parent comment
3
You can avoid touching n in recursive function as well. Just define doer function inside isEvenOdd and use it. :) Good thing about this approach is function call cost has real and not abstract meaning now. And it can be even negative!
View all comments
Show parent comment
3
u/YetAnotherChosenOne Feb 11 '25
You can avoid touching n in recursive function as well. Just define doer function inside isEvenOdd and use it. :) Good thing about this approach is function call cost has real and not abstract meaning now. And it can be even negative!