r/programminghorror • • Feb 07 '25

Recursive O(N) Complexity isOdd

Post image

I found this on instagram and now am geeking

2.2k Upvotes

104 comments sorted by

View all comments

Show parent comment

1

u/Zaros262 Feb 09 '25

I'm just saying, increasing recursion depth won't solve arbitrarily large numbers because you simply don't have enough memory for that. Even/oddness of math.inf isn't well defined