Bilal R.

asked • 03/15/21

Develop a C++ code, which performs the following operations on a doubly link list:

Function 1: Delete the middle node if the length of the list is odd.

Function 2: Delete the middle 2 nodes if the length of the list is even.

Function 3: Update the value of 2nd node

Function 4: Insert a new node at 2nd position


1 Expert Answer

By:

Patrick B. answered • 03/26/21

Tutor
4.7 (31)

Math and computer tutor/teacher

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.