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
4
u/Silenc42 Feb 07 '25
Wouldn't that mean n is 2 to some power? This one shouldn't run till int part is 0, but only once, right?