Priority Queue Job Manager
Design a job management system using a priority queue that supports enqueueing jobs and retrieving batches of highest priority jobs. Each job contains an ID, priority score, and enqueue timestamp.
Asked at:
Microsoft
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
All Regions
Early March, 2026
Microsoft
Mid-level
Design a Priority Queue Job Manager that supports: 1. enqueue(job) → add a job 2. get_next_batch(k) → return the k highest priority jobs Each job has: job_id, priority_score, enqueue_time
Hello Interview Premium
Your account is free and you can post anonymously if you choose.