Marks :10
: 1 | : 0
Given a string $$$s$$$ containing just the characters (, ), {, }, [ and ], determine if the input string is valid.
An input string is valid if:
Open brackets must be closed by the same type of brackets.
Open brackets must be closed in the correct order.
Every close bracket has a corresponding open bracket of the same type.
The first line contains the string $$$s$$$, $$$(1 \le |s| \le 10^5)$$$.
$$$s$$$ consists of parentheses only '()[]{}'.
Return $$$true$$$ if the string is valid and $$$false$$$ otherwise.
()[]{}
true
[}
false
You need to login to view your submissions.
You need to login to view all submissions.
Result : Executed
Feel something is wrong with the test cases?
Result : Accepted
Test Cases :
But to Run or Submit the Problem, you need to Log In.
Continue to Log InYour challenge has been submitted successfully.
You will get a response soon via WhatsApp or Email.
Do let us know your issue.