Draw This - beginner
Draw a diagram showing an array of 5 numbers: [10, 20, 30, 40, 50]. Label each element with its index (0 to 4).
5 minutes
Hint 1
Hint 2
Hint 3
Draw a diagram showing an array of 5 numbers: [10, 20, 30, 40, 50]. Label each element with its index (0 to 4).
+-----+-----+-----+-----+-----+
| 10 | 20 | 30 | 40 | 50 |
+-----+-----+-----+-----+-----+
0 1 2 3 4 This diagram shows an array as a row of boxes. Each box holds one number from the list.
The numbers are 10, 20, 30, 40, and 50.
Below each box is its index, starting from 0 on the left to 4 on the right.
This helps us find values quickly by their position.