1 of 2
emirps
  • 1.8k
  • 4
  • 15

Vyxal, 6 bytes

‛)(τøβ

Try it Online!

Link contains all test cases.

‛)(τøβ
   τ   # convert to base
‛)(    # ")("
    øβ # is the string of brackets balanced?
emirps
  • 1.8k
  • 4
  • 15