[LeetCode] Palindrome Partitioning, Solution

摘要: Given a string s, partition s such that every substring of the partition is a palindrome.Return all possible palindrome partitioning of s.For example,... 阅读全文
posted @ 2013-03-04 12:52 小刀初试 阅读(119) 评论(0) 推荐(0)

[LeetCode] Surrounded Regions, Solution

摘要: Given a 2D board containing 'X' and 'O', capture all regions surrounded by 'X'.A region is captured by flipping all 'O's into 'X's in that surrounded ... 阅读全文
posted @ 2013-03-04 09:56 小刀初试 阅读(165) 评论(0) 推荐(0)