diff --git a/lectures/10_linked_lists/README.md b/lectures/10_linked_lists/README.md index 42d7d76..ea65962 100644 --- a/lectures/10_linked_lists/README.md +++ b/lectures/10_linked_lists/README.md @@ -284,13 +284,17 @@ item. - If p is a pointer to this node, and x holds the value to be inserted, then the following code will do the insertion. Draw a picture to illustrate what is happening. +```cpp +Class exercise +``` + - Play this [animation](https://jidongxiao.github.io/CSCI1200-DataStructures/animations/lists/insert/index.html) to see how this code snippet works. - Note: This code will not work if you want to insert x in a new node at the front of the linked list. Why not?