Fork me on GitHub
摘要: In LLP world, there is a hero called Teemo and his attacking can make his enemy Ashe be in poisoned condition. Now, given the Teemo's attacking ascend 阅读全文
posted @ 2017-05-24 23:08 hellowOOOrld 阅读(168) 评论(0) 推荐(0) 编辑
摘要: You need to find the largest value in each row of a binary tree. Example: Input: 1 / \ 3 2 / \ \ 5 3 9 Output: [1, 3, 9] 思路: 层次遍历,每一层选出当前层最大值。 阅读全文
posted @ 2017-05-24 20:32 hellowOOOrld 阅读(120) 评论(0) 推荐(0) 编辑
摘要: A sequence of number is called arithmetic if it consists of at least three elements and if the difference between any two consecutive elements is the 阅读全文
posted @ 2017-05-24 20:11 hellowOOOrld 阅读(203) 评论(0) 推荐(0) 编辑
摘要: Suppose you have N integers from 1 to N. We define a beautiful arrangement as an array that is constructed by these N numbers successfully if one of t 阅读全文
posted @ 2017-05-24 17:09 hellowOOOrld 阅读(194) 评论(0) 推荐(0) 编辑