일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- Writing
- 만화도
- 쓰릴오브파이트
- 화상영어
- 운동
- 30분
- Problem Solving
- 뭐든
- Daily Challenge
- 파비최
- 미드시청
- 개발자
- 리얼 클래스
- FIT XR
- 괜찮음
- 읽기
- 영어공부
- realclass
- 사이드
- 프로젝트
- 잡생각
- 월간
- English
- 스탭퍼
- 3줄정리
- 10분
- leetcode
- 영어원서읽기
- 매일
- 링피트
Archives
- Today
- Total
파비의 매일매일 공부기록
2023.11.08 Today's Challenge 본문
x, y 축에 대해 간단한 이해만 있으면 되는 문제
class Solution:
def isReachableAtTime(self, sx: int, sy: int, fx: int, fy: int, t: int) -> bool:
w, h = abs(sx - fx), abs(sy - fy)
if w == 0 and h == 0 and t == 1:
return False
return t >= max(w, h)
반응형
'Problem Solving > LeetCode' 카테고리의 다른 글
2023.11.10 Today's Challenge (0) | 2023.11.10 |
---|---|
2023.11.09 Today's Challenge (0) | 2023.11.09 |
2023.11.07 Today's Challenge (0) | 2023.11.07 |
2023.11.06 Today's Challenge (1) | 2023.11.06 |
2023.11.05 Today's Challenge (0) | 2023.11.05 |
Comments