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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!