Sequences of elements a0 through an−1 can be represented by:
⟨ a0, a1, ..., an−1 ⟩Additionally, for lists, use | to indicate the current position of the list. Individually complete the following, then turn to a neighbor to confirm your answers. Write down each call to the List interface necessary to complete the following operations. Draw the list representation after each operation.
New list: ⟨ | ⟩ Insert H: ⟨ | H ⟩ Append y: ⟨ | H, y ⟩ Append r: ⟨ | H, y, r ⟩ Append u: ⟨ | H, y, r, u ⟩ Append m: ⟨ | H, y, r, u, m ⟩
⟨ | H, y, r, u, m, , C, a, r, r, o, l, l ⟩
⟨ H, y, r, u, m, | D, ., , C, a, r, r, o, l, l ⟩
⟨ H, D, C | ⟩
Last Modified: