
leetcode
余空~
你若对得起时间,时间便对得起你
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
LeetCode 10. Regular Expression Matching
Regular Expression Matching 1、原题 Implement regular expression matching with support for '.' and '*'. ‘.’ Matches any single character. ‘*’ Matches zero or more of the preceding element.原创 2018-01-19 17:03:06 · 688 阅读 · 0 评论 -
780. 到达终点 (Reaching Points)
从点 (x, y) 可以转换到 (x, x+y) 或者 (x+y, y)。 给定一个起点 (sx, sy) 和一个终点 (tx, ty),如果通过一系列的转换可以从起点到达终点,则返回 True,否则返回 False。 示例: 输入: sx = 1, sy = 1, tx = 3, ty = 5 输出: True 解释: 可以通过以下一系列转换从起点转换到终点: (1, 1) -> (1,...原创 2019-01-17 17:52:00 · 511 阅读 · 0 评论 -
56、合并区间 (Merge Intervals)
给出一个区间的集合,请合并所有重叠的区间。 示例 1: 输入: [[1,3],[2,6],[8,10],[15,18]] 输出: [[1,6],[8,10],[15,18]] 解释: 区间 [1,3] 和 [2,6] 重叠, 将它们合并为 [1,6]. 示例 2: 输入: [[1,4],[4,5]] 输出: [[1,5]] 解释: 区间 [1,4] 和 [4,5] 可被视为重叠区间。 解题思...原创 2019-01-18 16:46:24 · 512 阅读 · 0 评论