in this question we will dene a function for


In this question we will de ne a function for sorting lists based upon the algorithm selection sort. First, de ne a function smallest which takes as input a list of integers and returns the smallest element in the list;

Next, de ne a function delete which takes as input an integer and a list of integers and returns the list obtained by deleting the rst occurence of the integer in the list;

Finally, de ne the function select which takes a list of integers and returns the list whose head is the smallest element in the list and whose tail is the result of recursively sorting the list obtained by deleting the smallest element of the list from the list

Request for Solution File

Ask an Expert for Answer!!
Application Programming: in this question we will dene a function for
Reference No:- TGS0207741

Expected delivery within 24 Hours