摘要: 问题: 给定一组event的举办起始日表, 可以参加任意event在任意天。 求最多能参加多少个event。 ⚠️ 注意:同一天只能参加一个event。 Example 1: Input: events = [[1,2],[2,3],[3,4]] Output: 3 Explanation: You 阅读全文
posted @ 2021-04-29 15:20 habibah_chang 阅读(69) 评论(0) 推荐(0) 编辑
摘要: 问题: 无限横坐标中,下落正方块问题。 position[i]={x, len} 表示:每次落在坐标 x 的位置,正方块变长len。 求每次落下后,当前最高y坐标的高度。 Example 1: Input: [[1, 2], [2, 3], [6, 1]] Output: [2, 5, 5] Exp 阅读全文
posted @ 2021-04-29 13:26 habibah_chang 阅读(49) 评论(0) 推荐(0) 编辑