摘要: https://oj.leetcode.com/problems/word-break/水题。简单DP。class Solution {public: int n,m; bool wordBreak(string s, unordered_set &dict) { n=s.... 阅读全文
posted @ 2014-10-07 18:00 zombies 阅读(98) 评论(0) 推荐(0) 编辑
摘要: https://oj.leetcode.com/problems/merge-intervals/水题。需要注意sort的用法可能在平台上不好使。/** * Definition for an interval. * struct Interval { * int start; * ... 阅读全文
posted @ 2014-10-07 17:50 zombies 阅读(121) 评论(0) 推荐(0) 编辑