All New

user:thomas gists created by user

title:mygist gists with given title

description:sync gists with given description

filename:myfile.txt gists having files with given name

extension:yml gists having files with given extension

language:go gists having files with given language

topic:homelab gists with given topic

all:systemctl search all fields

Register

Login

All New Register Login

linkjobai

Joined 5 days ago

Recently created
Least recently created
Recently updated
Least recently updated
All gists 1

linkjobai / Interval Problems: Meeting Rooms I and II

0 likes
0 forks
1 files
Last active 5 days ago
Interview prep notes
interview

Interval Problems: Meeting Rooms I and II

Interval questions come up constantly because they test sorting, greedy reasoning and heaps all at once.

Meeting Rooms I (can one person attend all meetings?)

Sort by start time and check whether any meeting starts before the previous one ends.

def can_attend(intervals):
Newer Older

Powered by Opengist ⋅ Load: 16ms⋅

English
العربية Čeština Deutsch English Español Français Magyar Italiano 日本語 Polski Português Русский Türkçe Українська 简体中文 繁體中文