[ ]
Array & ArrayList Operations
AP CSA · Unit 6: Arrays & Unit 7: ArrayList
↺ Reset
⛶ Fullscreen
Mode:
Array
Size:
8
Op:
—
Length
8
Used
8
Comparisons
0
Shifts
0
Complexity
—
Type
int[] Array
ArrayList
Access arr[i]
Access
Insert value at index
Insert
Delete at index
Delete
Search
Linear
Binary
Shuffle
Sort
Reverse
Reset
Operation Log
Quick Quiz
▼
1. Array indices in Java start at:
1
0
-1
It depends
2. Inserting into the middle of an array is:
O(1)
O(log n)
O(n)
O(n²)
3. Binary search requires the array to be:
Empty
Sorted
Of even length
Full of unique values
Check Answers