일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- 10분
- 영어공부
- leetcode
- 프로젝트
- 3줄정리
- 잡생각
- 30분
- 운동
- 괜찮음
- Writing
- 읽기
- 영어원서읽기
- 파비최
- FIT XR
- 스탭퍼
- realclass
- 사이드
- 쓰릴오브파이트
- 개발자
- English
- 링피트
- 리얼 클래스
- Problem Solving
- 뭐든
- 월간
- 화상영어
- 매일
- 미드시청
- Daily Challenge
- 만화도
Archives
- Today
- Total
파비의 매일매일 공부기록
2023.08.10 Today's Challenge 본문
https://leetcode.com/problems/search-in-rotated-sorted-array-ii/
이분탐색을 활용하여 푸는 문제
class Solution:
def search(self, nums: List[int], target: int) -> bool:
for i in nums:
if target in nums:
return True
return False
반응형
'Problem Solving > LeetCode' 카테고리의 다른 글
2023.08.12 Today's Challenge (0) | 2023.08.12 |
---|---|
2023.08.11 Today's Challenge (0) | 2023.08.11 |
2023.08.09 Today's Challenge (0) | 2023.08.09 |
2023.08.08 Today's Challenge (0) | 2023.08.08 |
2023.08.07 Today's Challenge (0) | 2023.08.07 |
Comments