https://1chanhue1.tistory.com/57
[프로그래머스 , kotlin] 피로도
연결리스트를 이용한 풀이 ( 스택과 같은 기능으로)fun solution_ff(k: Int, dungeons: Array): Int { val stack = mutableListOf(Triple(k, 0, BooleanArray(dungeons.size))) var maxCount = 0 while (stack.isNotEmpty()) { val (currentK, count, vis
1chanhue1.tistory.com
'내일배움캠프 > TIL' 카테고리의 다른 글
[TIL] 07.03 (0) | 2024.07.03 |
---|---|
[TIL] 07.01 (0) | 2024.07.01 |
[TIL] 06.26 (0) | 2024.06.26 |
[TIL] 06.21 (0) | 2024.06.21 |
[TIL] 06. 18 (0) | 2024.06.18 |