Question: i am learning C++ about the linked list(single or doubling) please help me with these questions thank you so much and please don't use array
i am learning C++ about the linked list(single or doubling) please help me with these questions thank you so much and please don't use array for these questions thank you
PARAMETER: Another list
before doing each of them pls say which number you are doing
-
Given a non-empty calling object, copy one or more elements of the parameter object into the calling object at a specified position.
-
Given an empty calling object, copy in reverse some or all elements of the parameter object into the calling object.
-
Given a non-empty calling object, copy in reverse some or all elements of the parameter object into the calling object at a specified position.
-
Given a non-empty calling object and a non-empty parameter object, append (add to the end) one or more elements of the calling object to the end of the parameter object.
-
Given a non-empty calling object and a non-empty parameter object, append (add to the end) one or more elements of the parameter object to the end of the calling object.
-
Swap calling object and parameter object. Think how to implement this one efficiently without any loops.
-
Compare the elements of the calling object and the parameter object and return true if they are the same (make sure to first check if the number of elements is the same, because there is no need to start a loop if the number of elements differs).
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
