| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | 6 | 7 |
| 8 | 9 | 10 | 11 | 12 | 13 | 14 |
| 15 | 16 | 17 | 18 | 19 | 20 | 21 |
| 22 | 23 | 24 | 25 | 26 | 27 | 28 |
Tags
- Python
- 리트코드
- First Unique Character in a String
- 코딩테스트
- leetcode
- ProblemSoving
- 알고리즘
- 해커랭크
- ProblemSolving
- K8S
- 파이썬
- Count Monobit Integers
- 문제해결
- hackerrank
- 하늘과 바람과 별과 詩
- Code Jam
- Kubernetes
- 하늘과 바람과 별과 시
- C++
- Qualification Round
- 3D PRINTING
- 프로그래머스
- GitLab
- swift
- MySQL
- Code Jam 2022
- 2022
- LEVEL 2
- Algorithm
Archives
- Today
- Total
목록2026/02/10 (2)
공대생의 비망록
[LetCode][Easy] Two Sum II - Input Array Is Sorted 문제 Python 풀이
투 포인터를 사용해서 푸는 대표적인 문제이다. 풀이:class Solution: def twoSum(self, numbers: List[int], target: int) -> List[int]: left = 0; right = len(numbers) - 1 while left
카테고리 없음
2026. 2. 10. 18:19
[LeetCode][Easy] Valid Parentheses 문제 Python 풀이
자료구조를 공부하게 되면 Stack의 특성을 활용하도록 꼭 한번은 경험하게 되는 문제를 LeetCode 플랫폼에서도 풀게 되었다.기존에는 C나 C++, Java로 구현했었는데 이번에는 Python으로 여러 방법을 구현해보았다. if-else 구문을 떡칠해서 문제를 해결하는 가장 기본적인 (멍청한) 방식:class Solution: def isValid(self, s: str) -> bool: stack = list() for ch in s: if ch == '(' or ch == '{' or ch == '[': stack.append(ch) elif ch == ')': if len(..
Programming Language/Python
2026. 2. 10. 15:24
