Go to file
Lothar Buchholz 16ee5b632a more tests; write System.err to console
.idea default IntelliJ settings; run config
gradle/wrapper Initial commit
src more tests; write System.err to console
.gitignore exclude compiler settings
README.md Added Readme and testdata
build.gradle Initial commit
gradlew Initial commit
gradlew.bat Initial commit
settings.gradle Added Readme and testdata

README.md

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 ()[]{}