2014年4月22日

摘要: Problem Link:http://oj.leetcode.com/problems/surrounded-regions/We can do follows in the 2D board.Use BFS from all 'O' cells on the boundary and mark ... 阅读全文

posted @ 2014-04-22 09:48 卢泽尔 阅读(106) 评论(0) 推荐(0)

摘要: Problem Link:http://oj.leetcode.com/problems/palindrome-partitioning-ii/We solve this problem by using Dynamic Programming.Optimal Sub-structureAssume... 阅读全文

posted @ 2014-04-22 09:25 卢泽尔 阅读(147) 评论(0) 推荐(0)