File: root - text - article - 2019 - 12 - room-scheduling.txt.txt
Tags: 每日算法题, 算法, 数据结构, 面试题, Daily Interview Problem, Data Structures and Algorithms, Computer Programming, Python, | English | Home Page | Category: Computing | 418 Views, 17065 Search Bots | 43 Words
| Browse | Archive
![Subscribe to Feed Burner Subscribe to Feed Burner](/images/form/rss.gif)
Tags: 每日算法题, 算法, 数据结构, 面试题, Daily Interview Problem, Data Structures and Algorithms, Computer Programming, Python, | English | Home Page | Category: Computing | 418 Views, 17065 Search Bots | 43 Words
![Subscribe to Feed Burner Subscribe to Feed Burner](/images/form/rss.gif)
Hi, here's your problem today. This problem was recently asked by Google:
You are given an array of tuples (start, end) representing time intervals for lectures. The intervals may be overlapping. Return the number of rooms that are required.
For example. [(30, 75), (0, 50), (60, 150)] should return 2.
Tags: 每日算法题, 算法, 数据结构, 面试题, Daily Interview Problem, Data Structures and Algorithms, Computer Programming, Python, | English | Home Page | Cateogry: Computing | 418 Views, 17065 Search Bots | 43 Words You are given an array of tuples (start, end) representing time intervals for lectures. The intervals may be overlapping. Return the number of rooms that are required.
For example. [(30, 75), (0, 50), (60, 150)] should return 2.
![Subscribe to Feed Burner Subscribe to Feed Burner](/images/form/rss.gif)
Related Articles
- Daily Interview Problem: Reverse Integer
- Absolute Path
- Algorithm Interview: Smallest Number that is not a Sum of a Subset of List
- Daily Interview Problem: Circle of Chained Words
- Sorting a list with 3 unique numbers
- Daily Interview Problem: Reverse Words in a String
- Daily Interview Problem: Jump to the End
- Daily Interview Problem: Merge Overlapping Intervals
- A trick for getting good at coding interviews FASTER
- Daily Interview Problem: Longest Substring With K Distinct Characters
©2006~2024 SteakOverCooked - 0.01337 Seconds(s) - 1460.058 KB/s - 7 Online
Memory: 494.25 KB
18:54:01 up 13 days, 18:33, 2 users, load average: 0.98, 0.86, 0.73 - Server PHP Version: 7.4.33
How to Cook a Perfect Steak? | <meta name="robots" content="index, follow">
![](/images/top.jpg)
18:54:01 up 13 days, 18:33, 2 users, load average: 0.98, 0.86, 0.73 - Server PHP Version: 7.4.33
Read & Write - Normal - Mini - Post - All Comments - Statistics
Be the first one to comment this page !