Question: 5. Write a function, recursive_min, that returns the smallest value in a nested number list. Assume there are no empty lists or sublists: test(recursive_min([2, 9,
5. Write a function, recursive_min, that returns the smallest value in a nested number list. Assume there are no empty lists or sublists: test(recursive_min([2, 9, [1, 13], 8, 6]) == 1)
test(recursive_min([2, [[100, 1], 90], [10, 13], 8, 6]) == 1)
test(recursive_min([2, [[13, -7], 90], [1, 100], 8, 6]) == -7)
test(recursive_min([[[-13, 7], 90], 2, [1, 100], 8, 6]) == -13)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
