From 298852d5242e052f6fdcc1b5f4645d6ee85720e8 Mon Sep 17 00:00:00 2001 From: NehaKeshan <39170739+NehaKeshan@users.noreply.github.com> Date: Tue, 3 Oct 2023 13:44:09 -0400 Subject: [PATCH] Update README.md Removed the insert code snippet as it would be a class exercise. --- lectures/10_linked_lists/README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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?