This code snippet checks whether a string is balanced or not. The following should hold: -- (){} - true {({})} - true {}{ - false [] - true
This code snippet checks whether a string is balanced or not.
The following should hold:
--
(){} - true
{({})} - true
{}{ - false
[] - true
The following should hold:
--
(){} - true
{({})} - true
{}{ - false
[] - true
COMMENTS