HF RL Explorer

Реализуй функцию Python по приведённой спецификации. Верни ТОЛЬКО тело функции с правильными отступами, без…

Реализуй функцию Python по приведённой спецификации. Верни ТОЛЬКО тело функции с правильными отступами, без…: a task in unslop-harbor (Harbor dataset). def parse nested parens(paren string: str) - List int : """ Input to this function is a string represented multiple groups for nested parentheses…

The task

def parse_nested_parens(paren_string: str) -> List[int]: """ Input to this function is a string represented multiple groups for nested parentheses separated by spaces. For each of the group, output the deepest level of nesting of parentheses. E.g. (()()) has maximum two levels of nesting while ((())) has three.

Part of rawmodels/unslop-harbor.