Question: 2 - Extend the class linkedListType by adding the following operations: a . Write a function that returns the info of the kth element of
Extend the class linkedListType by adding the following operations:
a Write a function that returns the info of the kth element of the
linked list. If no such element exists, terminate the program.
b Write a function that deletes the kth element of the linked list. If no such element exists, terminate the program.
Provide the definitions of these functions in the class linkedListType. Also, write a program to test these functions. Use either the class unorderedLinkedList or the class orderedLinkedList to test your function.
Use c
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
