From fbcf933c32dd5d1d255753c229cfbc584896d3d7 Mon Sep 17 00:00:00 2001 From: NehaKeshan <39170739+NehaKeshan@users.noreply.github.com> Date: Tue, 3 Oct 2023 16:33:54 -0400 Subject: [PATCH] Update README.md readded the insert code snippet. --- lectures/10_linked_lists/README.md | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lectures/10_linked_lists/README.md b/lectures/10_linked_lists/README.md index ea65962..42d7d76 100644 --- a/lectures/10_linked_lists/README.md +++ b/lectures/10_linked_lists/README.md @@ -284,17 +284,13 @@ 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?