2020-04-30 08:10:02 +02:00
2020-02-24 20:23:15 +01:00
2020-04-30 08:10:02 +02:00
2020-02-25 20:30:45 +01:00
2020-02-24 20:23:15 +01:00
2020-02-24 20:23:15 +01:00
2020-02-24 20:23:15 +01:00
2020-02-25 21:44:05 +01:00
2020-02-25 21:44:05 +01:00

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
No description provided
Readme 83 KiB
Languages
Java 78.4%
Gradle 15.9%
CSV 5.7%