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

Write a program to read two numbers from the keyboard and display the larger value on the screen

1 Answers  


Mention the default functions in C++, how would you detect that error has occurred inside the constructor and destructor.

0 Answers   Adobe,


What are string library functions(syntax).

0 Answers   Accenture,


write a program To generate the Fibonacci Series.

0 Answers   Accenture,


Define namespace.

1 Answers  






What are the advantages/disadvantages of using #define?

0 Answers   Amazon,


What is wrong with this statement? std::auto_ptr ptr(new char[10]);

0 Answers   Amazon,


Without using third variable write a code to swap two numbers.

0 Answers   Accenture,


How to generate random numbers in C++ with a range?

0 Answers  


What are pass by value and pass by reference?what is the disadvantage of pass by value?

0 Answers   Alter,


What is an algorithm (in terms of the STL/C++ standard library)?

0 Answers   Amazon,


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

0 Answers   Akamai Technologies, Infogain,


Categories