PracHub
QuestionsPremiumCoachesLearningGuidesInterview Prep
|Home/Coding & Algorithms/Morgan Stanley

Compute maximum non-overlapping meetings

Last updated: Mar 29, 2026

Quick 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.

  • medium
  • Morgan Stanley
  • Coding & Algorithms
  • Data Scientist

Compute maximum non-overlapping meetings

Company: Morgan Stanley

Role: Data Scientist

Category: Coding & Algorithms

Difficulty: medium

Interview Round: Technical Screen

Assume you are given a list of meeting time intervals for a single person. Each meeting i is represented by a pair of integers [start_i, end_i], where 0 <= start_i < end_i, and all times are in the same unit. You can attend at most one meeting at any given time, and you must attend a meeting for its entire duration if you choose it. Meetings that touch at a boundary (for example, one ends at time t and another starts at time t) do not overlap and can both be attended. Write a function that, given the list of intervals, returns the maximum number of meetings you can attend by selecting a subset of non-overlapping intervals. You may assume: - 1 <= n <= 2 * 10^5 - |start_i|, |end_i| <= 10^9 Clarify the algorithmic problem and return the maximum count of meetings; implementation details are not required here.

Quick Answer: This question evaluates understanding of interval scheduling and related algorithmic concepts, including complexity analysis, handling of boundary conditions, and management of large input sizes.

Related Interview Questions

  • Implement Factorial and Squares - Morgan Stanley (medium)
  • How do you escape the circle? - Morgan Stanley (medium)
  • Compute win probability in coin-toss game - Morgan Stanley (easy)
  • Count decodings of a digit string - Morgan Stanley (Medium)
  • Compute minimal cost to merge numbers - Morgan Stanley (Medium)
Morgan Stanley logo
Morgan Stanley
Dec 8, 2025, 7:56 PM
Data Scientist
Technical Screen
Coding & Algorithms
1
0

Assume you are given a list of meeting time intervals for a single person.

Each meeting i is represented by a pair of integers [start_i, end_i], where 0 <= start_i < end_i, and all times are in the same unit.

You can attend at most one meeting at any given time, and you must attend a meeting for its entire duration if you choose it. Meetings that touch at a boundary (for example, one ends at time t and another starts at time t) do not overlap and can both be attended.

Write a function that, given the list of intervals, returns the maximum number of meetings you can attend by selecting a subset of non-overlapping intervals.

You may assume:

  • 1 <= n <= 2 * 10^5
  • |start_i|, |end_i| <= 10^9

Clarify the algorithmic problem and return the maximum count of meetings; implementation details are not required here.

Submit Your Answer

Sign in to leave a comment

Loading comments...

Browse More Questions

More Coding & Algorithms•More Morgan Stanley•More Data Scientist•Morgan Stanley Data Scientist•Morgan Stanley Coding & Algorithms•Data Scientist Coding & Algorithms
PracHub

Master your tech interviews with 8,500+ real questions from top companies.

Product

  • Questions
  • Learning Tracks
  • Interview Guides
  • Resources
  • Premium
  • For Universities
  • Student Access

Browse

  • By Company
  • By Role
  • By Category
  • Topic Hubs
  • SQL Questions
  • Compare Platforms
  • Discord Community

Support

  • support@prachub.com
  • (916) 541-4762

Legal

  • Privacy Policy
  • Terms of Service
  • About Us

© 2026 PracHub. All rights reserved.