Question
these are linked list functions please help me to write these functions to study c++ PARAMETER: Another list 1.Swap the first node of the calling
these are linked list functions please help me to write these functions to study c++
PARAMETER: Another list
1.Swap the first node of the calling object with the first node of the parameter object.
2.Swap the value of the first node of the calling object with the value of the first node of the parameter object.
3Swap the first node of the calling object with the last node of the parameter object.
4.Swap the value of the first node of the calling object with the value of the last node of the parameter object.
5.Swap the first node of the calling object with the second node of the parameter object.
6.Swap the value of the first node of the calling object with the value of the second node of the parameter object.
7.Swap the first node of the calling object with the node before last of the parameter object.
8.Swap the value of the first node of the calling object with the value of the before last of the parameter object.
9.Swap the second node of the calling object with the first node of the parameter object.
10.Swap the value of the second node of the calling object with the value of the first node of the parameter object.
11.Swap the second node of the calling object with the last node of the parameter object.
Thank you very much for helping.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started