This video is about HackerRank Balanced Bracket problem.
A bracket is considered to be any one of the following characters: (, ), {, }, [, or ].
Two brackets are considered to be a matched pair if the an opening bracket (i.e., (, [, or {) occurs to the left of a closing bracket (i.e., ), ], or }) of the exact same type. There are three types of matched pairs of brackets: [], {}, and ().
A matching pair of brackets is not balanced if the set of brackets it encloses are not matched. For example, {[(])} is not balanced because the contents in between { and } are not balanced. The pair of square brackets encloses a single, unbalanced opening bracket, (, and the pair of parentheses encloses a single, unbalanced closing square bracket, ].
Problem: https://www.hackerrank.com/challenges/balanced-brackets/problem
sample code:https://www.coderscart.com/balanced-brackets-hackerrank/
For 1 : 1 Tutoring
WhatsApp contact : 7278222619
mail: [email protected]
You can support via UPI : sattujaiswal@okhdfcbank
Follow us on:
Whatsapp:
https://chat.whatsapp.com/LNwHGukUizjJPAxK7ma8gs
Facebook:
https://www.facebook.com/codingcart/
Linkedin:
https://www.linkedin.com/in/satyendra-jaiswal-903588a2/
https://www.linkedin.com/company/codingcart
Instagram:
https://www.instagram.com/codingcart/
#HackerRank #Interview #Data_Structure