Skip to content

Assignment 3 (linked list)

yahya tawil edited this page Oct 9, 2021 · 1 revision

Starting from the code provided for linked list in this session, add the following methods:

  • isEmpty Check if the list is empty.
  • Reset clear the list.
  • FindAndReplace(int Val,int newVal) iterate over the linked list and replace any node that has data with value Val to newVal.