Compute rooms and verify tree completeness | TikTok
|Home/Coding & Algorithms/TikTok
Compute rooms and verify tree completeness
TikTok
Sep 6, 2025, 12:00 AM
Software Engineer
Technical Screen
Coding & Algorithms
0
0
Given a list of closed-open time intervals [start, end) representing meetings on a single calendar, compute the minimum number of rooms required so that no meetings in the same room overlap. Implement an algorithm, justify its time and space complexity, and discuss how you would handle very large inputs.
Given the root of a binary tree, determine whether it is a complete binary tree (all levels filled except possibly the last, which is filled from left to right). Provide an algorithm, analyze complexity, and describe edge cases and test cases.