Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Company Name Starts with ...
#  A  B  C  D  E   F  G  H  I  J   K  L  M  N  O   P  Q  R  S  T   U  V  W  X  Y  Z

Wollega University C++ Code Interview Questions
Questions Answers Views Company eMail

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.

4940

Post New Wollega University C++ Code Interview Questions


Wollega University C++ Code Interview Questions
    Wollega University C++ Code Interview Questions (1)


Un-Answered Questions

When do you use merge() and update() in hibernate?

325


How can you import only a subset of rows from a table?

5


What is semmni (max-sem-ids in solaris 10+)?

826


what are the limitations of identity column? : Transact sql

1088


What are the commands in ms word?

692


What is windows azure and explain its services?

636


What is the constructor?

1038


What is pl sql commands?

1024


how do you calculate the quantity of steel,cement for plinth beam. (example size 41'*0.58'*1.08')

2633


What is the difference between Classic badi and Kernal badi ?

2519


What are the 4 basic html tags?

782


What is non linear data structure with example?

924


on creation of entity how many tables will be created at back end?

657


List some new features available in jdbc 4.0?

893


What is enumerator?

984