일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- 링피트
- 30분
- English
- 리얼 클래스
- 사이드
- Writing
- 뭐든
- realclass
- 만화도
- Daily Challenge
- FIT XR
- 운동
- 3줄정리
- Problem Solving
- 파비최
- 영어원서읽기
- leetcode
- 10분
- 프로젝트
- 미드시청
- 잡생각
- 화상영어
- 쓰릴오브파이트
- 개발자
- 매일
- 영어공부
- 스탭퍼
- 읽기
- 괜찮음
- 월간
Archives
- Today
- Total
파비의 매일매일 공부기록
Today's Challenge 본문
https://leetcode.com/problems/my-calendar-i/
My Calendar I - LeetCode
Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview.
leetcode.com
단순 구현 문제.. 그닥 어려운 건 없었음.
class MyCalendar:
def __init__(self):
self.booking = []
def book(self, start, end):
for i, j in self.booking:
if i < end and start < j:
return False
self.booking.append((start, end))
return True
반응형
'Problem Solving > LeetCode' 카테고리의 다른 글
Today's Challenge (0) | 2022.08.05 |
---|---|
Today's Challenge (0) | 2022.08.04 |
Today's Challenge (0) | 2022.08.02 |
Today's Challenge (0) | 2022.08.01 |
Today's Challenge (0) | 2022.07.31 |
Comments