摘要:
A classic subroutine of merge sort. Just merge the elements from back to forth. Keep a pointer for the merged position of the element and two other po... 阅读全文
posted @ 2015-07-02 18:11
jianchao-li
阅读(187)
评论(0)
推荐(0)
摘要:
The typical solution to this problem is to use Dynamic Programming. The state dp[i] represents whether s[0..i - 1] can be broken into words in wordDic... 阅读全文
posted @ 2015-07-02 11:48
jianchao-li
阅读(275)
评论(0)
推荐(0)
摘要:
This link suggests a concise C++ recursive solution. The original code may be hard to understand at first and I have rewritten the code below. You may... 阅读全文
posted @ 2015-07-02 11:35
jianchao-li
阅读(528)
评论(0)
推荐(0)

浙公网安备 33010602011771号