Quick Overview

Determine whether a string of round, square, and curly brackets is properly matched and nested in last-opened, first-closed order, treating the empty string as valid.

Validate Properly Nested Brackets

Company: Amazon

Role: Software Engineer

Category: Coding & Algorithms

Difficulty: easy

Interview Round: Technical Screen

Overview: Determine whether a string of round, square, and curly brackets is properly matched and nested in last-opened, first-closed order, treating the empty string as valid.

Loading…