摘要: 题目: Given a non-negative integer num, repeatedly add all its digits until the result has only one digit. For example: Given num = 38, the process is l 阅读全文
posted @ 2017-03-05 12:12 panini 阅读(112) 评论(0) 推荐(0) 编辑
摘要: 题目: Given a binary tree, return all root-to-leaf paths. For example, given the following binary tree: All root-to-leaf paths are: 链接: http://leetcode. 阅读全文
posted @ 2017-03-05 11:53 panini 阅读(129) 评论(0) 推荐(0) 编辑
摘要: 题目: There are a row of n houses, each house can be painted with one of the three colors: red, blue or green. The cost of painting each house with a ce 阅读全文
posted @ 2017-03-05 09:24 panini 阅读(188) 评论(0) 推荐(0) 编辑
摘要: 题目: Given an array of meeting time intervals consisting of start and end times [[s1,e1],[s2,e2],...] (si < ei), determine if a person could attend all 阅读全文
posted @ 2017-03-05 08:57 panini 阅读(132) 评论(0) 推荐(0) 编辑