摘要: 题目: Given a binary tree containing digits from 0-9 only, each root-to-leaf path could represent a number. An example is the root-to-leaf path 1->2->3 which represents the number 123. Find the total... 阅读全文
posted @ 2014-04-24 23:16 mickole 阅读(242) 评论(0) 推荐(0) 编辑
摘要: 题目: 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 region. For example, X X X XX O O XX X O ... 阅读全文
posted @ 2014-04-24 22:28 mickole 阅读(182) 评论(0) 推荐(0) 编辑
摘要: 题目: Given a string s, partition s such that every substring of the partition is a palindrome. Return the minimum cuts needed for a palindrome partitioning of s. For example, given s = "aab", Ret... 阅读全文
posted @ 2014-04-24 20:48 mickole 阅读(327) 评论(0) 推荐(0) 编辑