Question: Implement Delete Node Function Implement the function deleteNode( Node * head, int val ). There will be no input. Unit tests will be used to

Implement Delete Node Function

Implement the function deleteNode( Node * head, int val ). There will be no input. Unit tests will be used to check your list deletes the given node. The lists used with your function will only have unique numbers. Free the memory of the node you are deleting. Use the struct given in the template for your nodes. Do not use the following libraries: algorithm, cmath Examples Input of a list 1->2->3->4->5->nullptr. If deleteNode( head, 3 ) is called. The list should be 1->2->4->5->nullptr Input NO INPUT Output NO OUTPUT

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!