Question: Topic: Linked list We have a list list_name = ['fish', 'pork, 'milk', 'bread', 'cheese', 'banana', 'apple'] question: 1) get_last_item() - returns the last item name
Topic: Linked list
We have a list
list_name = ['fish', 'pork, 'milk', 'bread', 'cheese', 'banana', 'apple']
question:
1) get_last_item() - returns the last item name from the linked list.
2) find_smallest(): returns the smallest item from linked list. (ex. [ apple banana cheese] -> apple is smallest)
3) selection_sort(): sorts items on the array from the current object and replaces it with the newly sorted result.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
