Walmart·Mobile Engineer·Technical Phone Screen
- Design a task scheduler with two operations: one to add a task with a priority, and one to execute all pending tasks.
“My first instinct was a heap because of the priority angle, but then I looked at the example output and realized everything just runs at once.”