girliemac / a-picture-is-worth-a-1000-words

I am trying to describe complex matters in simple doodles!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Better example for O(1)

dfyx opened this issue · comments

The current example (a function that always returns true) might lead an inexperienced reader to think O(1) only happens when the input isn't used at all. It would probably be better to use something like getFirstElement oder getLength