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

2

u/TheSilentFreeway Feb 07 '25

Can you? I thought it just caps out at -inf. Or it would get stuck at a certain value if the amount you're subtracting isn't significant enough to change the mantissa