Exercise: Maximum depth
Given a possibly nested list, compute the deepest level of embedding in the list. The ground level counts as 0 depth. For example, the list
[1, [2, 3], 4, [5, [6, 7]]]
should return 2.
Given a possibly nested list, compute the deepest level of embedding in the list. The ground level counts as 0 depth. For example, the list
[1, [2, 3], 4, [5, [6, 7]]]
should return 2.