933. Number of Recent Calls
¶
- Time:
- Constructor: $O(1)$
ping()
: $O(3000) = O(1)$
- Space: $O(3000) = O(1)$
1 2 3 4 5 6 7 8 9 10 11 12 |
|
1 2 3 4 5 6 7 8 9 10 |
|
1 2 3 4 5 6 7 8 9 |
|
ping()
: $O(3000) = O(1)$1 2 3 4 5 6 7 8 9 10 11 12 |
|
1 2 3 4 5 6 7 8 9 10 |
|
1 2 3 4 5 6 7 8 9 |
|