Total/Global maximum of a nested list
Problem:
I'm trying to find the total (or global) maximum of a nested list. The goal is to implement a function that returns the maximum value of a nested list of arbitrary depth (number of nested elements) and size (length of the nested elements).
Expected Behavior:
In [1]: nested_max([[1, 2], [[2, 1], [3, 4]]])
Out [1]: 4
I would be very grateful if someone could help me out on this.