upvote
Right, we assume it doesn’t depend on the size of the input. But that makes it “boring” or degenerate in the context of complexity. Or to put it another way: O(1) is the least interesting complexity class.
reply