Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Trinary solution in Creative category for How Deep by veky
import itertools
how_deep = lambda structure: max(itertools.accumulate(
{-1:0, 0:1, 1:-1}['()'.find(char)] for char in str(structure)))
April 28, 2019
Comments: