Consider: https://replit.com/@JimSkon/SimpleLinkedListatend#main.cpp
Fork and add code to do each of the after 5 numbers have been entered.
- Write code to insert a new node at the head with “44”.
You will need to usenewto create a new node, then insert it in the proper place.
Then display the list. - Write code to insert a “10” between the second and third element. Do not use a loop.
- Write code to add a “42” after the 4 node. Use a loop.
- Write code to add “999” after the last node.
- Write code to delete the first node.
- Write code to delete the 3rd node.
- Write code to delete the last node.
- Write code to delete the nth node.
- Write code to allow a node value to be entered, and delete that node.
Fork the following: https://replit.com/@JimSkon/SimpleLinkedListSorted#main.cpp
- Change the code to add in the opposite order.
- Change the code to be doubly linked.
- Write a function “displayBackwards” to list the reverse order.
- Write code to remove the 3rd element.
- Write code to remove the first element.
- Write code to remove the last element.
- Write code to clear the list.
