摘要: Algorithm 1. "429. N ary Tree Level Order Traversal LeetCode" 2. "690. Employee Importance LeetCode" 3. "872. Leaf Similar Trees LeetCode" 4. "767. Re 阅读全文
posted @ 2018-09-09 21:37 okokabcd 阅读(196) 评论(0) 推荐(0)
摘要: Question "896. Monotonic Array" Solution 题目大意: 类似于数学中的减函数,增函数和物理中的加速度为正或为负 思路: 先比较前两个是大于0还是小于0,如果等于0就比较第2,3两个,依次类推,得到这个是递增数组还递减数组后再遍历接下来的数就好办了 Java实现: 阅读全文
posted @ 2018-09-09 20:53 okokabcd 阅读(261) 评论(0) 推荐(0)