Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for How Deep by ssk8
def how_deep(structure):
m = [1]
for sub in structure:
if type(sub) == tuple:
m.append(how_deep(sub) + 1)
return max(m)
July 18, 2019