Quick Overview

Validate a bracket string by ensuring every closing symbol matches the most recent unmatched opener. The task tests stack discipline, nesting order, early rejection of invalid closers, and confirmation that no opener remains at the end.

Validate a String of Brackets

Company: Garner Health

Role: Software Engineer

Category: Coding & Algorithms

Difficulty: medium

Interview Round: Technical Screen

Overview: Validate a bracket string by ensuring every closing symbol matches the most recent unmatched opener. The task tests stack discipline, nesting order, early rejection of invalid closers, and confirmation that no opener remains at the end.

Loading…