Advertisement
Guest User

Untitled

a guest
Jan 28th, 2020
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. Given a string of round, curly, and square open and closing brackets, return whether the brackets are balanced (well-formed).
  2. Obs:
  3. - Without using recursive regex
  4. Examples:
  5. 1. () -> true
  6. 2. [] -> true
  7. 3. (()) -> true
  8. 4. ([]) -> true
  9. 5. ( -> false
  10. 6. ) -> false
  11. 7. ([)] -> false
  12. 8. ([])[]({}) -> true
  13. 9. ((() -> false
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement