摘要: Given n non-negative integers a1, a2, ..., an, where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two endpo 阅读全文
posted @ 2017-09-26 20:19 Tsunami_lj 阅读(97) 评论(0) 推荐(0) 编辑
摘要: Implement regular expression matching with support for '.' and '*'. dp解法:膜 https://discuss.leetcode.com/topic/6183/my-concise-recursive-and-dp-solutio 阅读全文
posted @ 2017-09-26 13:24 Tsunami_lj 阅读(129) 评论(0) 推荐(0) 编辑
摘要: The string "PAYPALISHIRING" is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a fixed font 阅读全文
posted @ 2017-09-26 09:47 Tsunami_lj 阅读(104) 评论(0) 推荐(0) 编辑