Main content
Storing and updating lists
Problem
This code snippet stores and updates a list of high scores for a video game:
highScores ← [750, 737, 714, 672, 655, 634, 629, 618, 615, 610]
DISPLAY(highScores[5])
INSERT(highScores, 5, 668)
INSERT(highScores, 2, 747)
REMOVE(highScores, 12)
REMOVE(highScores, 11)
DISPLAY(highScores[5])
What does this program output to the display?
?
Related content