Leetcode解题记录
尽量抽空刷LeetCode,持续更新
刷题记录在github上面,https://github.com/Zering/LeetCode
2016-09-05
300. Longest Increasing Subsequence
问题:https://leetcode.com/problems/longest-increasing-subsequence/
分析:http://zering.me/2016/09/02/Longest-Increasing-Subsequence/
2016-09-06
354. Russian Doll Envelopes
这个问题和 Longest Increasing Subsequence类似,只是一维变成了二维
问题:https://leetcode.com/problems/russian-doll-envelopes/
源码:https://github.com/Zering/LeetCode/blob/master/src/main/java/com/algorithm/RussianDollEnvelope.java
292. Nim Game
问题:https://leetcode.com/problems/nim-game/
太简单,稍微写点分析
分析:http://zering.me/2016/09/06/Nim-Game/
2016-09-07
167. Two Sum II - Input array is sorted
问题:https://leetcode.com/problems/two-sum-ii-input-array-is-sorted/
源码:https://github.com/Zering/LeetCode/blob/master/src/main/java/com/algorithm/TwoSumSortedArray.java