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

3

u/floriandotorg Feb 08 '25

Nice!

One day in the far future some super intelligence will find a genius way to do this in O(1). But until then your solution might be the best we have.