- 博客(4)
- 收藏
- 关注
原创 LeetCode 27. Remove Element
分类: Array ; Two Points问题描述:Given an array and a value, remove all instances of that value in place and return the new length.Do not allocate extra space for another array, you must do this
2016-11-30 21:31:27 358
原创 LeetCode 100. Same Tree
分类:Tree ;DFS问题描述:Given two binary trees, write a function to check if they are equal or not.Two binary trees are considered equal if they are structurally identical and the nodes have the
2016-11-29 20:38:32 247
原创 LeetCode 101. Symmetric Tree
分类 :Tree; BFS; DFS 问题描述:Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center).For example, this binary tree [1,2,2,3,4,4,3] is symmetric: 1
2016-11-29 19:55:57 246
原创 javascript中全局变量与局部变量
函数外部 定义全局变量 可以用 var 或者直接 用变量,例如:var a=1 或者 a=1这样都是全局变量函数里面定义全局变量 不需要var 例如a=1,如果用了var 就是表示是局部变量!!
2016-11-02 10:28:40 229
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人