# Tag Archives: Parentheses-Problems

Given an expression string exp, write a program to examine whether the pairs and the orders of “{“, “}”, “(“, “)”, “[“, “]” are correctâ€¦ Read More
Given an expression string exp, write a program to examine whether the pairs and the orders of “{“, “}”, “(“, “)”, “[“, “]” are correctâ€¦ Read More
Given an expression string exp, write a program to examine whether the pairs and the orders of “{“, “}”, “(“, “)”, “[“, “]” are correctâ€¦ Read More
Given an expression string exp, write a program to examine whether the pairs and the orders of “{“, “}”, “(“, “)”, “[“, “]” are correctâ€¦ Read More
Given an expression string exp, write a program to examine whether the pairs and the orders of “{“, “}”, “(“, “)”, “[“, “]” are correctâ€¦ Read More
Given an expression string exp, write a program to examine whether the pairs and the orders of “{“, “}”, “(“, “)”, “[“, “]” are correctâ€¦ Read More
Given a numeric string S made up of characters ‘1’, ‘2’ and ‘3’ only, the task is to replace characters with either an open bracketâ€¦ Read More
Given a string s consisting of parentheses {‘(‘ and ‘)’} and integers, the task is to construct a Binary Tree from it and print itsâ€¦ Read More
Given a string S of size N consisting of only ‘(‘ and ‘)’ only and a positive integer K, the task is to check ifâ€¦ Read More
Given string str of length N, consisting of pairs of balanced parentheses, the task is to calculate the score of the given string based onâ€¦ Read More
Given a string str consisting of pairs of balanced parentheses, the task is to calculate the score of the given string based on the followingâ€¦ Read More
Given a string str, the task is to find the maximum count of pairs (str[i], str[j]) of balanced parenthesis required to be removed such thatâ€¦ Read More
Given a valid parenthesis string str consisting of lowercase alphabets, opening, and closing brackets, the task is to find the string by removing the outermostâ€¦ Read More
Given a string S of length N, consisting of only opening ‘(‘ and closing ‘)‘ parenthesis. The task is to find all indices ‘K‘ suchâ€¦ Read More
Given a bracket sequence as a string str, the task is to find whether the given string can be balanced by moving at most oneâ€¦ Read More