Level2) 프린터
import java.util.LinkedList; import java.util.Queue; class Solution { public int solution(int[] priorities, int location) { int answer = 0; Queue q = new LinkedList(); for (int i = 0; i < priorities.length; i++) { q.offer(new Printer(i, priorities[i])); } while (!q.isEmpty()) { boolean flag = false; int com = q.peek().prior; // 맨 앞 for (Printer p : q) { if (com < p.prior) { flag = true; } } if (..
PS/programmers
2020. 10. 9. 18:20
링크
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
TAG
- JS 딥다이브
- js api
- ㅇㄷㅇㅈ
- dreamcoding
- js promise
- 킹수빈닷컴
- js array
- 모던자바스크립트
- http
- 프로그래머스 SQL
- HTTP 완벽가이드
- 프로그래머스
- 패스트캠퍼스 컴퓨터공학 완주반
- Spring Security
- java
- 이펙티브자바 아이템60
- REST API
- 드림코딩
- 이펙티브자바 스터디
- 백기선 스터디
- 가상 면접 사례로 배우는 대규모 시스템 설계 기초
- 백준
- GCP
- 이펙티브자바 아이템59
- BOJ
- JPA 연관관계 매핑
- 이펙티브자바
- HTTP 완벽 가이드
- 김영한 JPA
- 김영한 http
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
글 보관함