Question DSA-HEAP-0075
HardWhich problem is efficiently solved with a heap: 'given meeting times, find the minimum number of rooms'?
- A.
Use a stack
- B.
Use a hash map only
- 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
Which problem is efficiently solved with a heap: 'given meeting times, find the minimum number of rooms'?
Use a stack
Use a hash map only
Sign up free to see the answer and a step-by-step explanation.
Sort by start and keep a min-heap of end times
Use BFS