Skip to content

Commit

Permalink
Turn code into an image
Browse files Browse the repository at this point in the history
  • Loading branch information
Zoe Farrell committed Dec 5, 2023
1 parent 8205f66 commit 50b3524
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 17 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 1 addition & 17 deletions module6/lessons/Week2/LinkedLists.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,23 +45,7 @@ The InsertAtBeginning method is working, but to get the InsertAtEnd method worki
<section class="answer" markdown="1">
### 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;
}
```
<img src="/assets/images/module6/week2/finishedInsertAtEnd.png" style="max-width: 50%;" >
</section>

Have one partner share their screen, and work together to get InsertAtEnd working!
Expand Down

0 comments on commit 50b3524

Please sign in to comment.