FastPrepMeeting Rooms
Problems/Meeting Rooms

Meeting Rooms

Goldman Sachs logoGoldman Sachs● EasyNEW GRADFULLTIMEPHONE SCREENONSITE INTERVIEW
QuestionFunctionExamplesConstraints

Problem statement

Source note: The reported task identifies this standard algorithmic exercise. The executable interface, bounds, deterministic tie rules, and examples are the documented practice contract.

Each meeting is a half-open interval [start, end). Return true if one person can attend every meeting without overlap.

Function

canAttendMeetings(intervals: int[][]) → boolean

Examples

Example 1

intervals = [[0,30],[5,10],[15,20]]return = false

The first meeting overlaps the others.

Example 2

intervals = [[7,10],[10,12]]return = true

Half-open intervals may touch at an endpoint.

Constraints

  • There are at most 10^5 intervals.
  • start < end for every interval.

More Goldman Sachs problems

  • Palindrome CounterOA · Seen Oct 2026
  • Longest Palindromic SubsequenceOA · Seen Oct 2026
  • Best Average Student ScorePHONE SCREEN · ONSITE INTERVIEW · Seen Oct 2026
All Goldman Sachs interview questionsSee Goldman Sachs hiring insights
Saved
class Solution {
    public boolean canAttendMeetings(int[][] intervals) {
      // Write your code here.
    }
}
Checking account…