Question: Please implement the following functions based on the singly linked list we discussed in class. Question 1 : 2 . 5 points Implement the following

Please implement the following functions based on the singly linked list we discussed in class.
Question 1:
2.5 points
Implement the following function, which removes all the occurrences of the given value from the single-linked list.
void remove_all (Node *, int value) ;
Question 2:
2.5 points
Implement the following member function, which returns true if the list contains a sequence of 2 consecutive values equal to val.
bool check_seq2(Node *h , int val) ;
 Please implement the following functions based on the singly linked list

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!