454
Infallible Code
(lemmy.ml)
Post funny things about programming here! (Or just rant about your favourite programming language.)
scalable version
Not even else if? Damn, I guess we're checking all the numbers every time then. This is what peak performance looks like
O(1) means worst and best case performance are the same.