From 2cd9a8c99102eded737aba67ff626276dee2d77c Mon Sep 17 00:00:00 2001 From: Dale Seo <5466341+DaleSeo@users.noreply.github.com> Date: Sun, 25 Oct 2026 10:11:47 -0400 Subject: [PATCH 1/2] =?UTF-8?q?test:=20AI=20=ED=92=80=EC=9D=B4=20=EB=B6=84?= =?UTF-8?q?=EC=84=9D=20check=20run=20=ED=85=8C=EC=8A=A4=ED=8A=B8=EC=9A=A9?= =?UTF-8?q?=20(=EB=A8=B8=EC=A7=80=20=EA=B8=88=EC=A7=80)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- two-sum/DaleSeo-test.py | 10 ++++++++++ valid-parentheses/DaleSeo-test.py | 11 +++++++++++ 2 files changed, 21 insertions(+) create mode 100644 two-sum/DaleSeo-test.py create mode 100644 valid-parentheses/DaleSeo-test.py diff --git a/two-sum/DaleSeo-test.py b/two-sum/DaleSeo-test.py new file mode 100644 index 0000000000..2d71c22e4f --- /dev/null +++ b/two-sum/DaleSeo-test.py @@ -0,0 +1,10 @@ +# TC: O(n) +# SC: O(n) +class Solution: + def twoSum(self, nums: list[int], target: int) -> list[int]: + seen = {} + for i, num in enumerate(nums): + if target - num in seen: + return [seen[target - num], i] + seen[num] = i + return [] diff --git a/valid-parentheses/DaleSeo-test.py b/valid-parentheses/DaleSeo-test.py new file mode 100644 index 0000000000..0e979fc972 --- /dev/null +++ b/valid-parentheses/DaleSeo-test.py @@ -0,0 +1,11 @@ +class Solution: + def isValid(self, s: str) -> bool: + pairs = {")": "(", "]": "[", "}": "{"} + stack = [] + for ch in s: + if ch in pairs: + if not stack or stack.pop() != pairs[ch]: + return False + else: + stack.append(ch) + return not stack From ecb1b4f8dd95e4f34b06e61a0c00018ad1282fad Mon Sep 17 00:00:00 2001 From: Dale Seo <5466341+DaleSeo@users.noreply.github.com> Date: Sun, 25 Oct 2026 10:12:23 -0400 Subject: [PATCH 2/2] =?UTF-8?q?test:=20=EB=B3=B5=EC=9E=A1=EB=8F=84=20?= =?UTF-8?q?=EC=A3=BC=EC=84=9D=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- valid-parentheses/DaleSeo-test.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/valid-parentheses/DaleSeo-test.py b/valid-parentheses/DaleSeo-test.py index 0e979fc972..fb1e865229 100644 --- a/valid-parentheses/DaleSeo-test.py +++ b/valid-parentheses/DaleSeo-test.py @@ -1,3 +1,5 @@ +# TC: O(n) +# SC: O(n) class Solution: def isValid(self, s: str) -> bool: pairs = {")": "(", "]": "[", "}": "{"}