Spaced Recall Trainer

Array & String Senior Interview Flashcards

Master tough DSA, Cache Locality, and String Search interview questions on pointer math, amortized aggregate method, and KMP.

Memory & Hardware CachesJunior
Card 1 of 5
Question:

Why does accessing an array element arr[i] take O(1) time regardless of the size of the array?

Click anywhere on card to reveal answerFlip Card 🔄