Skip to content

Latest commit

 

History

History
15 lines (10 loc) · 355 Bytes

README.md

File metadata and controls

15 lines (10 loc) · 355 Bytes

<< [27] Is a string of brackets well-formed? >>

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

Examples:

>>> coding_problem_27('([])[]({})')
True

>>> coding_problem_27('([)]')
False

>>> coding_problem_27('((()')
False