This program accepts a string from user then checks for brackets if the string doesn't contain any brackets it outputs
"Error, String doesn't contain any brackets"
If the string has brackets it checks the order of brackets to check if brackets are balanced we define balanced as - if there's an opening bracket then there should be a closing bracket of the same kind e.g () [] {} in this case the brackets are balanced.
where the brackets start with a closing bracket or there exist an opening bracket with no closing the the string is not balanced
Z92-K/isBraceBalanced
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
accepts a string and check if brackets are balanced on that string.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published