this post was submitted on 15 Jul 2025
459 points (94.9% liked)

Programmer Humor

37265 readers
3 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 6 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[โ€“] xthexder@l.sw0.com 6 points 4 days ago (1 children)

Not even else if? Damn, I guess we're checking all the numbers every time then. This is what peak performance looks like

[โ€“] lime@feddit.nu 7 points 4 days ago

O(1) means worst and best case performance are the same.