Answer Posted /

Is This Answer Correct ?    Yes No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Definition of priority queue was given. We have to implement the priority queue using array of pointers with the priorities given in the range 1..n. The array could be accessed using the variable top. The list corresponding to the array elements contains the items having the priority as the array index. Adding an item would require changing the value of top if it has higher priority than top. Extracting an item would require deleting the first element from the corresponding queue. The following class was given: class PriorityQueue { int *Data[100]; int top; public: void put(int item, int priority); // inserts the item with the given priority. int get(int priority); // extract the element with the given priority. int count(); // returns the total elements in the priority queue. int isEmpty(); // check whether the priority queue is empty or not. }; We had to implement all these class functions.

4386


What are scoping commands?

5


What is pyrite?

445


How do you design a universe? : sap bobi

446


What are the commonalities between pig and hive?

348






What is the relation between rss and xml?

471


How to write the storeprocedure with in the store procedure? and how can we write the store procedure with in a trigger vice versa? plz post me the exact answer?

2104


What is singleton in laravel?

406


Explain severity with example and expalin each example?

3677


What do you understand by unit and ()in scala?

291


Can you define power analysis?

109


Explain the t code for payroll result.

533


What is jpa used for?

471


How do I get a call when my ipad rings?

437


Does the knowledge of mathematics of science is required to get into aerospace engineering?

655