implementation of enqueue( P pr, T e); method
// Return the length of the queue int length(); // Enqueue a new element. The queue keeps the k elements with the highest priority. void enqueue (P pr, Te); // Serve the element with the highest priority. In case of a tie apply FIFO. Pair<P, T> serve();
implementation of enqueue( P pr, T e); method
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
implementation of enqueue( P pr, T e); method
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!