Question: C# Ordered/Unordered Lists 100 points Modify the supplied class UnorderedArrayList the following ways: a. the method remove) removes an element from the list by shifting
Ordered/Unordered Lists 100 points Modify the supplied class UnorderedArrayList the following ways: a. the method remove) removes an element from the list by shifting the elements of the ist. However, if the element to be removed is at the beginning of the list and the list is fairly large, it could take a lot of computer time to perform the operation. Because the list elements are in no particular order, you could simply remove the element by copying the last element in the list at the position of the item to be removed and reducing the length of the list. the method remove removes only the first occurrence of an element. Add the method removeAll0 that will remove all occurrences of a given element. add the methods min) and max() which will return the smallest and largest respective elements in the list add an insertion sort method that puts the list in order. b. c. d. e. write a Main) method that thoroughly tests these modifications and demonstrates correctness Evaluation: remove) removeAll(O min) and Max) insertionSort) Testing 20 points 20 points 20 points 20 points 20 points
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
