Question 1: Linked Lists [50 points] a. [15pts] Write a method boolean Replace(int item, int new_item) that replaces all
Posted: Tue Jul 12, 2022 8:20 am
Question 1: Linked Lists [50 points] a. [15pts] Write a method boolean Replace(int item, int new_item) that replaces all occurrences of item in a list with new_item and return false if new_item is not found. For example, if item is "3" new_item is 5, then the method should replace all nodes that contain 3 with 5.