일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 29 | 30 | 31 |
Tags
- 715. Range Module
- DWG
- 315. Count of Smaller Numbers After Self
- attribute
- LeetCode
- 운영체제
- 43. Multiply Strings
- t1
- iterator
- 109. Convert Sorted List to Binary Search Tree
- Protocol
- shiba
- 컴퓨터의 구조
- 파이썬
- Generator
- 밴픽
- Python Implementation
- 프로그래머스
- Decorator
- Convert Sorted List to Binary Search Tree
- kaggle
- Python Code
- concurrency
- Python
- Substring with Concatenation of All Words
- Regular Expression
- 시바견
- Class
- 30. Substring with Concatenation of All Words
- data science
Archives
- Today
- Total
목록String to Integer (atoi) (1)
Scribbling
LeetCode: 8. String to Integer (atoi)
class Solution: def myAtoi(self, s: str) -> int: def delete_whitspace(s): idx = 0 while idx upper_limit: return upper_limit return num if len(s) == 0: return 0 s = delete_whitspace(s) if not s: return 0 first_char = s[0] if firs..
Computer Science/Coding Test
2021. 8. 16. 16:25