Minimum Conference Rooms Needed
TikTok interview questions · Medium · Coding round · 6 tests
Sort the starts and ends separately, then sweep from earliest to latest to track how many rooms are simultaneously in use.
The full question, tests and reference solution are available with a plan that includes TikTok.
Run your code with Ctrl+Enter to see results.