Skip to content

Commit e587045

Browse files
committed
cache 데코레이터 불러오기 추가
1 parent 99354cc commit e587045

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

course-schedule/hi-rachel.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,8 @@ def can_finish(crs):
135135
return False
136136
return True
137137

138+
from functools import cache
139+
138140
# 줄인 코드
139141
class Solution:
140142
def canFinish(self, numCourses: int, prerequisites: List[List[int]]) -> bool:

0 commit comments

Comments
 (0)