
Leetcode
文章平均质量分 79
woshixiaodashen
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Self Crossing
You are given an array x of n positive numbers. You start at point (0,0) and moves x[0] metres to the north, then x[1] metres to the west, x[2] metres to the south,x[3] metres to the east and so原创 2016-02-25 23:14:08 · 632 阅读 · 0 评论 -
二叉树的遍历
定义二叉树节点class TreeNode{ int val; TreeNode left; TreeNode right; public TreeNode(int val){ this.val = val; } }1. 前序遍历 递归 非常简单,代码如下: public void preTraversal(TreeNode root){原创 2017-06-30 01:18:15 · 190 阅读 · 0 评论