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

  1. Search for specific values (all odds, all evens, all multiples of some integer, etc.) and return the number of occurrences.

  2. Search for specific values (all odds, all evens, all multiples of some integer, etc.) and add a node at the end (or beginning) of the list. The node will store the number of occurrences.

  3. Search for specific values (all odds, all evens, all multiples of some integer, etc.) and return true if at least one occurrence of that specific value is found.

  4. Rotate a list to the left (or right) by rotating the nodes. You will need to reset pointers.

  5. Rotate a list to the left (or right) by rotating the values stored in the nodes. No pointers will be reset.

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!