2021년/알고리즘
[파이썬 알고리즘 인터뷰] 유효한 괄호
(20) 유효한 괄호 github.com/onlybooks/algorithm-interview ★ Easy [LeetCode] Valid Parentheses - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com 풀이법 처음에 아래와같이 풀었는데, class Solution: def isValid(self, s: str) -> bool: check_dic = { ")":"(", "]":"[", "}":"{" } stack = [s[0]] for s_ in s[1:]..
2021. 4. 2. 10:29