본문 바로가기

Code in

검색하기
Code in
프로필사진 heyhmin

  • 분류 전체보기 (37)
    • 알고리즘 스터디_개념정리 (9)
    • 알고리즘 스터디_문제풀이 (22)
    • IT - TMI (4)
    • 프로젝트_AI랑 (2)
Guestbook
Notice
Recent Posts
Recent Comments
Link
«   2025/08   »
일 월 화 수 목 금 토
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
  • 2020
  • programmers
  • indices
  • Poll
  • 프로그래머스
  • booleanarray
  • lastIndex
  • dynamic programming
  • 알고리즘
  • hackerrank
  • 코틀린
  • heap
  • dp
  • Queue
  • Kotlin
  • GREEDY
  • solution
  • Util
  • 동적계획법
  • Recursion
  • sortedBy
  • Main
  • foreach
  • intarray
  • Developer
  • 2D Array
  • report
  • Java
  • PriorityQueue
  • contentToString
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록data class (1)

Code in

프로그래머스 큐 다리를 지나는 트럭 with Kotlin

프로그래머스 큐, 다리를 지나는 트럭 문제입니다. 큐는 add 하는 곳과 poll(remove)하는 곳이 다르다는 것을 유의해야 했습니다... IntelliJ에서의 문제 풀이입니다. import java.util.Queue import java.util.LinkedList // Kotlin은 JVM: Java Virtual Machine 을 사용하기 때문에 Java의 Queue를 import합니다. var bridge_length:Int = 2 var weight: Int = 10 var truck_weights: IntArray = intArrayOf(7, 4, 5, 6) fun solution(bridge_length: Int, weight: Int, truck_weights: IntArray): I..

알고리즘 스터디_문제풀이 2020. 8. 11. 18:48
Prev 1 Next

Blog is powered by kakao / Designed by Tistory

티스토리툴바