Anishluke92 / RubySolution

Problem solving using Ruby programming language
0 stars 1 forks source link

Matching brackets #56

Closed danielpaul closed 2 years ago

danielpaul commented 3 years ago

This problem was asked by Facebook.

Given a string of round, curly, and square open and closing brackets, return whether the brackets are balanced (well-formed).

For example, given the string "([])", you should return true.

Given the string "([)]" or "((()", you should return false.