asked
Introduction to Algorithm Problem Solving for IT Employment (with C/C++): Coding Test Preparation
73. Max Heap (STL priority_queue: priority queue)
Written on
·
219
0
그러니까 priority queue는 항상 top이 최대값이고, top 말고는 열람이 불가한건가요
Answer 1
1
열람이 불가한건 아니지만 priority queue 자료구조는 루트 노드의 값 이외의 노드 값에 접근하는건 의미가 없는 걸로 알고 있습니다.