In Java supppose I need to access array1[index] many times in the code.
Even for extremely large arrays, can I assume each single array access takes constant time?
Can this differ between languages or underlying architecture?
In Java supppose I need to access array1[index] many times in the code.
Even for extremely large arrays, can I assume each single array access takes constant time?
Can this differ between languages or underlying architecture?