Question DSA-HEAP-0056
MediumA task scheduler always runs the job with the earliest deadline. Which data structure suits it?
- A.
An unsorted array
- B.
A stack
- C.
Sign up free to see the answer and a step-by-step explanation.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Heaps and Priority Queues question
A task scheduler always runs the job with the earliest deadline. Which data structure suits it?
An unsorted array
A stack
Sign up free to see the answer and a step-by-step explanation.
A FIFO queue
A min-heap keyed by deadline