목록2024/11/23 (1)
고양이와 코딩
[LeetCode] Valid Parentheses
프로그래머스에서 풀었었던 괄호문제! 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. Example 1:Input: s = "()"Output: trueExample 2:Inpu..
C
2024. 11. 23. 17:57