We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The algorithm checks only that the depth is non-negative. res := []; would be a valid implementation.
res := [];
Possible strengthenings:
parse_paren_group
parse_nested_parens
split
Note that this may require strengthening the precondition to ensure that the string really does consist of a number of groups.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The algorithm checks only that the depth is non-negative.
res := [];
would be a valid implementation.Possible strengthenings:
parse_paren_group
returns the maximum depth.parse_nested_parens
gives an array that matches with the behaviour ofsplit
andparse_paren_group
.Note that this may require strengthening the precondition to ensure that the string really does consist of a number of groups.
The text was updated successfully, but these errors were encountered: