leetcode
psvm-0903
这个作者很懒,什么都没留下…
展开
-
leetcode001
Given a binary tree, find its minimum depth.The minimum depth is the number of nodes along the shortest path from the root node down to the nearest leaf node.给定二叉树,找到它的最小深度。最小深度是从根节点到最近叶节点的最短路径上的节点...转载 2019-02-15 00:26:33 · 73 阅读 · 0 评论 -
LeetCode002
Evaluate the value of an arithmetic expression in Reverse Polish Notation.Valid operators are+,-,*,/. Each operand may be an integer or another expression.用反向波兰表示法计算算术表达式的值。有效的运算符+,-,*,/。每个操作数可能是一...转载 2019-02-16 00:56:15 · 65 阅读 · 0 评论 -
LeetCode003
Given n points on a 2D plane, find the maximum number of points that lie on the same straight line.给定2D平面上的n个点,找到位于同一直线上的最大点数运用穷举的方法 两点组成一条直线 若无特殊情况,当点a与b组成直线的斜率,和点b与c组成直线的斜率相同时,则认为这三个点a、b、c是在同...转载 2019-02-17 13:13:26 · 103 阅读 · 0 评论