Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- template<class Type> Type ArrayPQ<Type>::removeMin(void ) throw(exception) {
- if (isEmpty())
- {
- cout << "Empty Priority Queuen";
- }
- else
- {
- Type min = array[0];
- array[0] = array[heap];
- heap--;
- minHeapify(0);
- return min;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement