# [LeetCode]Longest Increasing Subsequence

0 票

Comments Off on [LeetCode]Longest Increasing Subsequence

# [LeetCode]Remove Invalid Parentheses

0 票

#
Comments Off on [LeetCode]Remove Invalid Parentheses

# [LeetCode]Nim Game

0 票

4个石子，后手总会赢。如果石子个数不是4的整数倍，那么先手可以取走一部分石子（1, 2, 3）使得剩下的石子数目是4的整数倍，接下来的博弈中先手变后手，总会赢。

#

# [LeetCode]Multiply Strings

0 票

Classical problem, try to finish it within 10 mins... // Coding 10 mins, debugging 5mins!!! It took me nearly 15 mins to solve it, time is so cruel...

# [LeetCode]Find Peak Element

0 票

For a random index $m$, compare $nums[m]$ with its neighbor, one of the answer belongs to the interval that the bigger element belongs to too, and we can optimize our program based on this.

Comments Off on [LeetCode]Find Peak Element

## 17 August, 2015

0 票

Notice the result($one-digit$ number) of the numbers is a periodic sequence...

# [LeetCode]Binary Tree Paths

0 票

Depth-First-Search..

#
Comments Off on [LeetCode]Binary Tree Paths

# [LeetCode]Search a 2D Matrix II

0 票

Here is a direct solution: keep narrowing the scope of matrix, and at the end, either the target doesn't belong to the matrix or the target appears in the scope's right-up corner as well as left-down corner.

Comments Off on [LeetCode]Search a 2D Matrix II

0 票

Count numbers...