摘要: 好开心 你又回来啦 嘻嘻嘻嘻 阅读全文
posted @ 2018-04-05 14:41 Tsunami_lj 阅读(181) 评论(0) 推荐(1) 编辑
摘要: 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) 编辑
摘要: Given an integer matrix, find the length of the longest increasing path. From each cell, you can either move to four directions: left, right, up or do 阅读全文
posted @ 2017-10-17 15:41 Tsunami_lj 阅读(107) 评论(0) 推荐(0) 编辑
摘要: Given a nested list of integers, implement an iterator to flatten it. Each element is either an integer, or a list -- whose elements may also be integ 阅读全文
posted @ 2017-10-17 13:39 Tsunami_lj 阅读(96) 评论(0) 推荐(0) 编辑
摘要: Find the length of the longest substring T of a given string (consists of lowercase letters only) such that every character in T appears no less than  阅读全文
posted @ 2017-10-17 12:54 Tsunami_lj 阅读(172) 评论(0) 推荐(0) 编辑
摘要: Given an unsorted array nums, reorder it such that nums[0] < nums[1] > nums[2] < nums[3].... Example:(1) Given nums = [1, 5, 1, 1, 6, 4], one possible 阅读全文
posted @ 2017-10-08 19:15 Tsunami_lj 阅读(136) 评论(0) 推荐(0) 编辑
摘要: Serialization is the process of converting a data structure or object into a sequence of bits so that it can be stored in a file or memory buffer, or 阅读全文
posted @ 2017-10-08 14:59 Tsunami_lj 阅读(121) 评论(0) 推荐(0) 编辑
摘要: Median is the middle value in an ordered integer list. If the size of the list is even, there is no middle value. So the median is the mean of the two 阅读全文
posted @ 2017-10-07 20:15 Tsunami_lj 阅读(128) 评论(0) 推荐(0) 编辑