摘要: 题目: We define the Perfect Number is a positive integer that is equal to the sum of all its positive divisors except itself. 我们定义Perfect Number是一个正整数,它 阅读全文
posted @ 2018-09-12 20:33 chan_ai_chao 阅读(115) 评论(0) 推荐(0) 编辑
摘要: 题目: Given a binary tree, find the length of the longest path where each node in the path has the same value. This path may or may not pass through the 阅读全文
posted @ 2018-09-12 20:20 chan_ai_chao 阅读(118) 评论(0) 推荐(0) 编辑
摘要: 题目: Design a stack that supports push, pop, top, and retrieving the minimum element in constant time. 设计一个支持push,pop,top和在恒定时间内检索最小元素的堆栈。 push(x) -- P 阅读全文
posted @ 2018-09-12 09:16 chan_ai_chao 阅读(111) 评论(0) 推荐(0) 编辑