- 博客(3)
- 收藏
- 关注
转载 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 113
转载 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 75
转载 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 84
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人