How will you execute a stack using a priority queue? (Push and pop should be in O (1)).


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More C++ Interview Questions

What is meant by exit controlled loop?

0 Answers   Adobe,


How many times will this loop execute? Explain your answer.

0 Answers  


What is the purpose of a constructor? Destructor?

0 Answers   Amazon,


Explain what happens when an exception is thrown in C++.

0 Answers   Amazon,


What is the difference between creating an object, using 'new' and using 'malloc'?

3 Answers   HFG, Siemens,






What is constant keyword in C++? Illustrate its various uses.

0 Answers   Akamai Technologies, Infogain,


When must you use a constructor initializer list?

0 Answers   Amazon,


What is a class in C++?

0 Answers   Amazon, TCS, UGC Corporation,


In C++ what do you mean by Inheritance?

0 Answers   Accenture,


Implement a 2D bit-matrix representing monochrome pixels which will have only OFF/ON values and will take on an average only one bit of memory for each stored bit. How to perform various operations on it?

0 Answers   Adobe,


Difference between Call by pointer and by reference.

0 Answers   Adobe,


Identify the errors in the following program. #include <iostream> using namespace std; void main() { int i=5; while(i) { switch(i) { default: case 4: case 5: break; case 1: continue; case 2: case 3: break; } i-; } }

1 Answers  


Categories