AlgoViz

O(1) constant time

easy 13 min

O(1) means an operation takes a fixed amount of work no matter how large the input is.

Check yourself

One question at a time. Each answer explains why.

Question 1 of 12

Score 0
conceptual

What is the time complexity of accessing arr[5] in an array?

Pick an answer to see why.

Flashcards

Say your answer, then reveal it.

Card 1 of 11

Recall

What does O(1) mean in one sentence?

Say your answer, then reveal it.

These cards come back in Today, just before you would forget them.