GATEverse
← GATE CSE 1997

Q4.7

MCQMarks unknown

A priority queue QQ is used to implement a stack that stores characters. PUSH (C) is implemented as INSERT (Q,C,K)(Q, C, K) where KK is an appropriate integer key chosen by the implementation. POP is implemented as DELETEMIN(Q)(Q). For a sequence of operations, the keys chosen are in

Sign in to save attempts.

Loading…