일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- shiba
- 315. Count of Smaller Numbers After Self
- 파이썬
- 운영체제
- 43. Multiply Strings
- Decorator
- DWG
- concurrency
- 109. Convert Sorted List to Binary Search Tree
- 시바견
- 30. Substring with Concatenation of All Words
- Regular Expression
- Convert Sorted List to Binary Search Tree
- t1
- Generator
- Substring with Concatenation of All Words
- Protocol
- iterator
- Class
- Python Code
- Python
- attribute
- 프로그래머스
- data science
- kaggle
- 컴퓨터의 구조
- LeetCode
- Python Implementation
- 밴픽
Archives
- Today
- Total
목록Search in Rotated Sorted Array II (1)
Scribbling
LeetCode: 81. Search in Rotated Sorted Array II
이 문제는 아래 문제와 상당히 유사하다. 33. Search in Rotated Sorted Array (https://leetcode.com/problems/search-in-rotated-sorted-array/description/) 실제 구현도 유사하지만, Time Complexity는 다른데 그 이유를 생각해보면 흥미롭다. class Solution: def search(self, nums: List[int], target: int) -> bool: left, right = 0, len(nums) - 1 while left
Computer Science/Coding Test
2021. 10. 6. 15:09