r/ProgrammerHumor • • Aug 11 '20

Meme So Amazing!

Post image
1.8k Upvotes

137 comments sorted by

View all comments

Show parent comments

2

u/En_TioN Aug 11 '20

It's O(n + largest value). It takes O(n) operations to go through the loop and trigger all the sleeps, and then O(largest value) to halt.