Compute maximum non-overlapping meetings
Company: Morgan Stanley
Role: Data Scientist
Category: Coding & Algorithms
Difficulty: medium
Interview Round: Technical Screen
Overview: This question evaluates understanding of interval scheduling and related algorithmic concepts, including complexity analysis, handling of boundary conditions, and management of large input sizes.
Read the full Morgan Stanley Data Scientist interview experience this question came from
Constraints
- Inputs are provided as Python literals matching the function signature.
- Return a deterministic exact-match result.
Examples
Input: ([[0,30],[5,10],[10,20]],)
Expected Output: 2
Explanation: Choose two short meetings.
Input: ([[1,2],[2,3],[3,4]],)
Expected Output: 3
Explanation: Touching boundaries allowed.
Hints
- Choose a representation that makes the core operation simple.
- Handle empty and boundary inputs before the main algorithm.