Prioritize Tasks according to priority.
Data Structure Used: Binary Heap
first Asks the user for maximum tasks and initialize the size of heap array.
Operations included:
- Add task(adds the task to the heap in its required position. O(logn) time.
- Complete task(removes the maximum priority task from heap. O(logn) time.
- Show all tasks(shows all remianing tasks in sorted in descending order of their priority). O(nlogn) time.
Please feel free to pull and commit with necessary changes.