Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
recursion solution in Clear category for How Deep by yoichi
def how_deep(structure):
if isinstance(structure, int):
return 0
return 1 + max((how_deep(e) for e in structure), default=0)
April 18, 2019
Comments: