diff --git a/assets/images/module6/week2/finishedInsertAtEnd.png b/assets/images/module6/week2/finishedInsertAtEnd.png new file mode 100644 index 0000000..bb1ef80 Binary files /dev/null and b/assets/images/module6/week2/finishedInsertAtEnd.png differ diff --git a/module6/lessons/Week2/LinkedLists.md b/module6/lessons/Week2/LinkedLists.md index 1f90c8f..4d68b4a 100644 --- a/module6/lessons/Week2/LinkedLists.md +++ b/module6/lessons/Week2/LinkedLists.md @@ -45,23 +45,7 @@ The InsertAtBeginning method is working, but to get the InsertAtEnd method worki
### Finished InsertAtEnd -```c# -public void InsertAtEnd(int data) -{ - Node newNode = new Node(data); - if (head == null) - { - head = newNode; - return; - } - Node current = head; - while (current.Next != null) - { - current = current.Next; - } - current.Next = newNode; -} -``` +
Have one partner share their screen, and work together to get InsertAtEnd working!