classroom

package
v0.0.0-...-b289098 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 15, 2019 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CountRequiredRooms

func CountRequiredRooms(intervals []Time) int

CountRequiredRooms solves: Given an array of time intervals (start, end) for classroom lectures (possibly overlapping), find the minimum number of rooms required.

For example, given [(30, 75), (0, 50), (60, 150)], you should return 2.

Types

type Time

type Time struct {
	// contains filtered or unexported fields
}

Time intervals (start, end) for classroom lectures

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL