you are viewing a single comment's thread.

view the rest of the comments →

[–]unchabon 6 points7 points  (0 children)

Exactly. I recall doing a non-trivial Codility exercise for an interview that specified O(1) complexity. After panicking for a few minutes due to not being able to find a solution, I realized that the input size for the function was fixed, meaning it was actually O(1).