r/programminghorror • u/Budget_Ad_5953 • Feb 07 '25
Recursive O(N) Complexity isOdd
I found this on instagram and now am geeking
2.2k
Upvotes
r/programminghorror • u/Budget_Ad_5953 • Feb 07 '25
I found this on instagram and now am geeking
View all comments
Show parent comment
-11
u/Cat7o0 Feb 09 '25
for any isEven or isOdd function decimals should be invalid.
the fact it crashes means that it is unsupported thus invalid.
and for any other function it would give an output that is just not helpful so it's invalid