摘要: Given a non-empty string s and a dictionary wordDict containing a list of non-empty words, add spaces in s to construct a sentence where each word is 阅读全文
posted @ 2017-10-21 23:34 Tsunami_lj 阅读(108) 评论(0) 推荐(0) 编辑
摘要: Sort a linked list in O(n log n) time using constant space complexity. 解题思路:归并排序的思想,空间复杂度其实是O(N)了 阅读全文
posted @ 2017-10-21 22:06 Tsunami_lj 阅读(91) 评论(0) 推荐(0) 编辑
摘要: Implement wildcard pattern matching with support for '?' and '*'. '?' Matches any single character. '*' Matches any sequence of characters (including 阅读全文
posted @ 2017-10-21 19:51 Tsunami_lj 阅读(116) 评论(0) 推荐(0) 编辑