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 |
Tags
- 2D Array
- PriorityQueue
- Util
- contentToString
- Poll
- 알고리즘
- 프로그래머스
- foreach
- 동적계획법
- report
- dp
- Java
- hackerrank
- 코틀린
- programmers
- dynamic programming
- heap
- 2020
- Main
- lastIndex
- solution
- indices
- Kotlin
- Queue
- booleanarray
- Developer
- sortedBy
- GREEDY
- intarray
- Recursion
Archives
- Today
- Total
목록import (1)
Code in

프로그래머스 큐, 프린터 문제입니다. IntelliJ에서의 풀이입니다. import java.util.Queue import java.util.LinkedList // Kotlin은 JVM: Java Virtual Machine 을 사용하기 때문에 Java의 Queue를 import합니다. var location: Int = 2 val priorities: IntArray = intArrayOf(2, 1, 3, 2) fun solution(priorities: IntArray, location: Int): Int { var answer = 0 data class print(val value: Int, val ff: Boolean) // data class 를 사용하여 print라는 데이터 형식을 선언합니..
알고리즘 스터디_문제풀이
2020. 8. 11. 20:12