Choose a programming language from the language dropdown given alongside before coding. Problem Statement Given an expression string x. Examine whether the pairs and the orders of "{":"}"."("")","[":"]" are correct in exp. For example, the function should return 'true' for exp = "[0]{[0010)" and 'false' fo exp = "[0)". Example 1: Input: {(ID)) Output: true Explanation: (101)). Same colored brackets can form balaced pairs, with O number of
Answers
Answered by
0
Answer:
Explanation:
Hey, here is your answer :-
Check out the image
Attachments:
Similar questions