강의

멘토링

커뮤니티

Inflearn Community Q&A

jinbongbang's profile image
jinbongbang

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 말고는 열람이 불가한건가요

C++코테 준비 같이 해요!

Answer 1

1

열람이 불가한건 아니지만 priority queue 자료구조는 루트 노드의 값 이외의 노드 값에 접근하는건 의미가 없는 걸로 알고 있습니다.

jinbongbang's profile image
jinbongbang

asked

Ask a question