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 | 686 Views, 21236 Search Bots | 43 Words
| Browse | Archive
Tags: 每日算法题, 算法, 数据结构, 面试题, Daily Interview Problem, Data Structures and Algorithms, Computer Programming, Python, | English | Home Page | Category: Computing | 686 Views, 21236 Search Bots | 43 Words
| Browse | Archive
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 | 686 Views, 21236 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.
Related Articles
- Algorithm Interview: Maximum Path Sum in Binary Tree
- Daily Interview Question: Word Search
- Daily Interview Problem: Min Stack
- Design Tic-Tac-Toe
- Most Frequent Subtree Sum
- [Daily Problem] Longest Increasing Subsequence
- Algorithm Interview: Smallest Number that is not a Sum of a Subset of List
- 56 Bytes
- How to Play WAV music under DOS?
- Algorithm Interview Question: Find the Single Element in an Array of Duplicates
©2006~2024 SteakOverCooked - 0.00681 Seconds(s) - 2785.32 KB/s - 11 Online Memory: 493.36 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="noindex, follow" />
18:54:01 up 13 days, 18:33, 2 users, load average: 0.98, 0.86, 0.73 - Server PHP Version: 7.4.33
Comments (0)
Read & Write - Normal - Mini - Post - All Comments - Statistics
Be the first one to comment this page !