Hacker News new | ask | show | jobs
by emmanuel_1234 2886 days ago
Or in O(1):

  return min
Alternatively

  return max
1 comments

> Or in O(1)

You mean in one instruction? The parent comment is O(1). The methods in the article are all O(1) too.