Question bank › Stack
Dsa Stack Easy

Balanced Bracket Checker

Write a function that checks if a string containing parentheses, brackets, and braces is balanced. A string is considered balanced if all opening brackets are closed in the correct order. Each type of bracket must be closed by the same type of bracket. For example: Input: {[()]} Output: True Input: {[(])} Output: False Input: {[} Output: False

Key concepts

stackstringvalidation

Practise this out loud — free

Start a mock interview on THIS exact question — a voice AI interviewer opens with it, pushes back like a real onsite, then hands you an instant scorecard.

🎙 Practise this question now
Part of Praxari's verified interview question bank. We show the prompt and concepts to practise with — never a copy-paste solution.