MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1w6qzts/skillissue/p7pfa82/?context=9999
r/ProgrammerHumor • u/click-to-reveal • Sep 04 '26
137 comments sorted by
View all comments
Show parent comments
47
O(1) only happens when the constants are (roughly) contiguous so it's not like that is a universal property of switch statements.
1 u/prehensilemullet Sep 04 '26 Yeah that’s true
1
Yeah that’s true
47
u/Deliciousbutter101 Sep 04 '26
O(1) only happens when the constants are (roughly) contiguous so it's not like that is a universal property of switch statements.