일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- 30분
- 화상영어
- leetcode
- 영어공부
- 개발자
- 3줄정리
- 10분
- realclass
- FIT XR
- Writing
- 미드시청
- 매일
- 만화도
- 리얼 클래스
- 쓰릴오브파이트
- Daily Challenge
- 프로젝트
- 영어원서읽기
- 뭐든
- 읽기
- 운동
- 파비최
- 괜찮음
- English
- 링피트
- Problem Solving
- 월간
- 잡생각
- 사이드
- 스탭퍼
Archives
- Today
- Total
파비의 매일매일 공부기록
2023.06.09 Today's Challenge 본문
https://leetcode.com/problems/find-smallest-letter-greater-than-target/
Find Smallest Letter Greater Than Target - LeetCode
Can you solve this real interview question? Find Smallest Letter Greater Than Target - You are given an array of characters letters that is sorted in non-decreasing order, and a character target. There are at least two different characters in letters. Retu
leetcode.com
올만에 매우 쉬운 문제
class Solution:
def nextGreatestLetter(self, letters: List[str], target: str) -> str:
for l in letters:
if l > target:
return l
return letters[0]
반응형
'Problem Solving > LeetCode' 카테고리의 다른 글
2023.06.11 Today's Challenge (0) | 2023.06.11 |
---|---|
2023.06.10 Today's Challenge (0) | 2023.06.10 |
2023.06.08 Today's Challenge (0) | 2023.06.08 |
2023.06.07 Today's Challenge (0) | 2023.06.07 |
2023.06.06 Today's Challenge (0) | 2023.06.06 |
Comments