Easy · Stack
Valid Parentheses
Given a string of brackets, decide whether every bracket is closed by the same type, in the right order.
s = "([]{})" → true
s = "([)]" → falseRecord your take Easy · Stack
Given a string of brackets, decide whether every bracket is closed by the same type, in the right order.
s = "([]{})" → true
s = "([)]" → falseRecord your take