...

/

Exercise: Check Whether the Brackets are Balanced

Exercise: Check Whether the Brackets are Balanced

Let's check if the brackets in a string are balanced.

We'll cover the following...

Problem statement

Given a string containing only square brackets, [], you must check whether the brackets are balanced or not. The brackets are said to be balanced if there is a ...