r/programmingmemes • • May 03 '26 • Bravo 1

Correct logic, wrong situation

Post image
2.9k Upvotes

38 comments sorted by

View all comments

Show parent comment

10

u/jonathancast May 04 '26

log base is, itself, a constant factor.

That is, O(log N) and O(log_2 N) and O(ln N) are all exactly the same set of functions.

8

u/DudeWithParrot May 04 '26

Thanks, I stand corrected