Better example for O(1)
dfyx opened this issue · comments
Christian Käser commented
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