issues
search
wbluke
/
Algorithm_PS
Algorithmic Problem Solving Strategies
https://algospot.com/
0
stars
0
forks
source link
[CH08] PI
#12
Closed
wbluke
closed
5 years ago
wbluke
commented
5 years ago
https://algospot.com/judge/problem/read/PI
APSS_p239
wbluke
commented
5 years ago
[My Point]
한번에 정답! 조금 오래걸렸지만 차근차근 하니까 성공ㅎㅎ
길이 1~5 토큰에 대한 난이도를 반환하는 checkDifficulty()와 메모이제이션을 적용하여 재귀호출을 하는 sumOfDifficulty()를 구현.
각각의 길이가 3, 4, 5인 조각을 뺀 나머지를 재귀호출하여 세가지 경우 중 가장 작은 값을 반환하도록 함.
https://algospot.com/judge/problem/read/PI
APSS_p239