New
ML System Design & SQL tracks just landed
See what's new
×
Question Bank
Pricing
Blog
Forum
HOT
Referral
Description
Solution
Discussion
Submissions
Ask AI
Question Bank
Coding Question
AI Insights
Quick Summary
Implement user management with constraints on simultaneous active tasks.
Validate task assignments by detecting interval overlaps and verifying dynamic quota limits.
Query active tasks for a user within specific time windows.
What This Tests
Sweep-line algorithms for interval analysis and peak load detection.
Hash table design for O(1) user and task lookups.
Interval clipping and overlap logic.
Event sorting and tie-breaking rules for half-open intervals.
State simulation over time ranges.
Common Patterns
Sweep-line
Hashing
Sorting
Interval Operations
Collapse
Hint 1
Hint 2
Hint 3
What Interviewers May Ask Next
Ask AI Assistant
Ask AI Assistant
Ask me anything about this coding question!
Qwen
Qwen3.6-Flash
0/2000
Auto
Debug
Run
Submit
Test Cases
Input
Output
Expected