Validate Properly Nested Brackets

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.

Amazon logo
Amazon
Aug 19, 2026
easySoftware EngineerTechnical ScreenCoding & Algorithms
17
0
Loading...