Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
accumulate solution in Clear category for How Deep by quarkov
from itertools import accumulate
how_deep = lambda structure: max(accumulate([(-1) ** (e == ")") for e in str(structure) if e in "()"]))
April 20, 2019
Comments: