Using Scheme create a recursive procedure called findMax lst

Using Scheme, create a recursive procedure called (findMax lst), where lst is a list of numbers. The procedure should return the max number in the list. If the given list is empty, you must print “empty list”. You may need to create a helper procedure.

For example: (findMax \'(1 5 20 -2 10)) outputs 20

Solution

}

Using Scheme, create a recursive procedure called (findMax lst), where lst is a list of numbers. The procedure should return the max number in the list. If the

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site