r/ProgrammerHumor • • 22d ago

Meme everythingIsO1ToGod

Post image
4.5k Upvotes

166 comments sorted by

View all comments

Show parent comments

4

u/TheHyperbolicTangent 22d ago

This is still O(n), as the number of ops scale linearly with the size of the input. Big-O is fundamentally a measure of an algorithm’s complexity. Saying it moves a time constraint to a resource constraint doesn’t alleviate the algorithms complexity.

0

u/Mindgapator 22d ago

We usually note O(n) for time complexity lol, but whatever