DataStructures-and-Algorithms

Code Challenge

Multi-bracket Validation.

Specifications

Challenge Setup & Execution

Branch Name: stack-queue-brackets

Challenge Type: Code Challenge / Algorithm

Feature Tasks

There are 3 types of brackets:

Example

Input Output
{} TRUE
{}(){} TRUE
()[[Extra Characters]] TRUE
(){}[[]] TRUE
{}{Code}[Fellows](()) TRUE
[({}] FALSE
(]( FALSE
{(}) FALSE

Consider these small examples and why they fail.

Input Output Why
{ FALSE error unmatched opening { remaining.
) FALSE error closing ) arrived without corresponding opening.
[} FALSE error closing }. Doesn’t match opening (.

Requirements

Ensure your complete solution follows the standard requirements.

  1. Write unit tests
  2. Follow the template for a well-formatted README
  3. Submit the assignment following these instructions