Question: 1. Write a method to insert an item in an unsorted list where the items are kept in a linked list named greenlist (a pointer
1. Write a method to insert an item in an unsorted list where the items are kept in a linked list named "greenlist" (a pointer where the first address of the list is kept) and the method has the signature: void InsertItem(ItemType green). Important: you need to insert the item at the end of the list. [Just write the method only, no need to write the full code]
2. Simulate the working operation of Selection Sort for the array: [ 27, 14, 52, 5, 18 ]. Show your work at each step by writing the status of the array after every insertion.
Answer the all questions.
In the question 1, use C++ to write the method.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
