LeetCode Weekly Contest 94
IT技术小密圈
“IT技术小密圈”公众号致力于为初中级程序员提供实用的编程技巧、经验分享和行业动态,涵盖代码实践、面试技巧和职场经验等多个方面,帮助你快速成长。
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
LeetCode: Weekly Contest 94
LeetCode: Weekly Contest 94 题解列表 1. LeetCode: 872. Leaf-Similar Trees 题解 签到题。分别中序遍历两棵树,按顺序记录各自的叶子,然后比较是否相等。 2.LeetCode: 874. Walking Robot Simulation 题解 模拟机器人行走的过程,并记录到达的每个位置与原点的距离的最大值。 ...原创 2018-07-22 12:54:06 · 304 阅读 · 0 评论 -
LeetCode: 872. Leaf-Similar Trees
LeetCode: 872. Leaf-Similar Trees 题目描述 Consider all the leaves of a binary tree. From left to right order, the values of those leaves form a leaf value sequence. For example, in the given tree a...原创 2018-07-22 12:57:47 · 922 阅读 · 1 评论 -
LeetCode: 874. Walking Robot Simulation
LeetCode: 874. Walking Robot Simulation 题目描述 A robot on an infinite grid starts at point (0, 0) and faces north. The robot can receive one of three possible types of commands: -2: turn left 90 d...原创 2018-07-22 13:02:37 · 678 阅读 · 0 评论 -
LeetCode: 875. Koko Eating Bananas
LeetCode: 875. Koko Eating Bananas 题目描述 Koko loves to eat bananas. There are N piles of bananas, the i-th pile has piles[i] bananas. The guards have gone and will come back in H hours. Koko can...原创 2018-07-22 13:05:56 · 585 阅读 · 0 评论 -
LeetCode: 873. Length of Longest Fibonacci Subsequence
LeetCode: 873. Length of Longest Fibonacci Subsequence 题目描述 A sequence X_1, X_2, …, X_n is fibonacci-like if: n >= 3 X_i + X_{i+1} = X_{i+2} for all i + 2 <= n Given a strictly increasing ar...原创 2018-07-22 13:09:58 · 1047 阅读 · 0 评论
分享