FresherFresher (0–1 yrs)CodingPythonAmazonMetaMicrosoft
Valid Parentheses
Given a string of ()[]{} only, return whether every open bracket is closed by the same type in the correct order.
Answers use simple, clear English.
Time: O(n)Space: O(n)
Confidence
#stack#string