All functions should belong to a template class. Functions' code should be efficient as well as correct. For all linked lists, first points to the first node and it is the only pointer in the list...


C++


All functions should belong to a template class. Functions' code should be efficient as well as correct.<br>For all linked lists, first points to the first node and it is the only pointer in the list (there is no last).<br>For circular sorted lists first points to the largest element.<br>Write a recursive method, to be included in an unsorted linked list class, called greater, that will receive an x<br>parameter. The method will print the info of nodes that contain a value that is greater than the parameter.<br>Write a recursive method, to be included in a sorted linked list class, called how many, that will return the<br>number of occurrences of an x parameter.<br>Write a recursive method, to be included in an unsorted linked list class, that will insert an item at the end of<br>the list.<br>

Extracted text: All functions should belong to a template class. Functions' code should be efficient as well as correct. For all linked lists, first points to the first node and it is the only pointer in the list (there is no last). For circular sorted lists first points to the largest element. Write a recursive method, to be included in an unsorted linked list class, called greater, that will receive an x parameter. The method will print the info of nodes that contain a value that is greater than the parameter. Write a recursive method, to be included in a sorted linked list class, called how many, that will return the number of occurrences of an x parameter. Write a recursive method, to be included in an unsorted linked list class, that will insert an item at the end of the list.

Jun 10, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here