Java CodeTest 연습 (Heap)
힙(HEAP)
더 맵게
1 | import java.util.PriorityQueue; |
heap.peek()
root return (제거 X)
heap.poll()
root return (제거 O)
heap.offer(int i)
i값 삽입
Comment
1 | import java.util.PriorityQueue; |
heap.peek()
root return (제거 X)
heap.poll()
root return (제거 O)
heap.offer(int i)
i값 삽입