forked from code-clash/is-string-well-formed
23354f4a559d3ece38c3853256b886978ccc7dd7
Test a String for '(),[],{}' well-formedness
Goal
A string over the characters ()[]{} is said to be well-formed, if the different types of brackets match in the correct order.
Write a program that outputs true or false depending on the well-formedness of the input.
Example
| Input | Output |
|---|---|
| ([{}])() | true |
| ([)] | false |
Constraints
Input strings consist only of characters ()[]{}
Description
Languages
Java
73.4%
Gradle
19.6%
CSV
7%