relative position that is based upon some underlying characteristic of the item Ascending or descending [54, 26, 93, 17, 77, 31] => [17, 26, 31, 54, 77, 93] 4
is the time complexity of the method you created? 2. In the previous problem, you most likely created an append method that was O(n). If you add an instance variable to the UnorderedList class you can create an append method that is O(1). Modify your append method to be O(1). 6
end of the list making it the last item in the collection. First traverse UnorderedList to original last item and then set new item as next node of original last item The time complexity is O(n) 7
both steps of the linked list add method in reverse order? What kind of reference results? What types of problems may result? 8. Explain how the linked list remove methods works when the item to be removed is in the last node. 9. Explain how the remove method works when the item is in the only node in the linked list. 9