Notice
Recent Posts
Recent Comments
Link
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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
- 2D Array
- 프로그래머스
- Util
- Poll
- dp
- Main
- hackerrank
- lastIndex
- PriorityQueue
- Java
- dynamic programming
- heap
- contentToString
- 알고리즘
- Recursion
- indices
- 2020
- programmers
- GREEDY
- 코틀린
- 동적계획법
- Developer
- report
- Queue
- Kotlin
- sortedBy
- booleanarray
- solution
- foreach
- intarray
Archives
- Today
- Total
목록totypedarray (1)
Code in
프로그래머스 깊이/너비 우선 탐색 여행경로 문제입니다. 프로그래머스에서의 풀이입니다. import java.util.Stack class Solution { val path: MutableList = mutableListOf() val stack: Stack = Stack() fun solution(tickets: Array): Array { tickets.sortWith(compareBy({ it[0] }, { it[1] })) val usedTicket = BooleanArray(tickets.size) { false } for (i in tickets.indices) { if (tickets[i][0] == "ICN") { usedTicket[i] = true stack.push("ICN") sta..
알고리즘 스터디_문제풀이
2020. 8. 30. 18:20