This question already has an answer here:
- What is O(…) and how do I calculate it? 2 answers
I have someone homework to make and in the instructions it says that we need to implement a function in O(1).
Now, does it mean that I can make my function in O(5) or O(2) or whatever?