Kotlinlearncs.online LogoJava
Return to List

Homework: Only Matching Braces

Created By: Chris Taylor
/ Version: 2023.7.0

Complete the following recursive method that returns true if and only if the string passed contains only matching braces.

  • "{}" -> true
  • "{{}}" -> true
  • "{{0}}" -> false
  • "{{{}}" -> false

Related Lessons

Stuck? You may find these lessons helpful: