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.
4920Post New Wollega University C++ Code Interview Questions
how to fetch the values from grid? & qtp recogniges that grid as a webelement? what u do?
Some important instruction regarding ADO.NET connection string ?
List the types of flexfield?
On what factors can you map the success of automation testing?
What is the db number of a particular customer TCA?
Is storage unit activation mandatory ?
What are the indexing capabilities of neo4j?
what is the anchorage length of reinforcement.
What is the Work object?
How to drop an existing view in oracle?
hai am ashok am studying degree 1st year.i want to write group 1 exams how i am started my preparation.which meterial is best for exam.what are the subjects have it.how much time can i spend to study dialy to get it in first attempt.how much money we need.for this exam degree qualification must to need .NCC c-certificate how use for this exam. what is the best coaching centre in hyd near to khairathabad.plz tell me
The function code currently active is ascertained by what variable ?
Do you plan to pursue an MBA immediately after completing your engineering?
Data flow of Accounts payable to General ledger?
Are lightning components intended only for mobile apps?