soulmachine / leetcode

LeetCode题解,151道题完整版。
BSD 3-Clause "New" or "Revised" License
11.29k stars 3.43k forks source link

Added DP solution for "Longest Valid Parenthese" #5

Closed JasonGitHub closed 10 years ago

JasonGitHub commented 10 years ago

Added DP solution for "Longest Valid Parenthese", requires only one pass through the input.

soulmachine commented 10 years ago

Great job!

soulmachine commented 10 years ago

Anyway, can you format your code, because some line is too long. and refactor a little bit, to make the code more concise?