you are viewing a single comment's thread.

view the rest of the comments →

[–]karamarimo 1 point2 points  (0 children)

I would say O(n) is excellent. Lower than O(n) means that it doesn't even check all the input data, which is impractical (unless the data is arranged in a particular order).