- 博客(5)
- 资源 (1)
- 问答 (2)
- 收藏
- 关注
原创 LeetCode题解:Climbing Stairs
题目链接:Climbing Stairs题目描述: You are climbing a stair case. It takes n steps to reach to the top。 Each time you can either climb 1 or 2 steps. In how many distinct ways can you climb to the top?题目解释
2015-07-17 17:58:55 417
原创 LeetCode题解:Path Sum
题目链接:Path Sum题目描述: Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values along the path equals the given sum. For example: Given the be
2015-07-16 10:31:32 490
原创 LeetCode题解:Remove Element
题目链接:Remove Element 题目描述: Given an array and a value, remove all instances of that value in place and return the new length. The order of elements can be changed. It doesn’t matter what you leave
2015-07-16 07:45:19 455
原创 LeetCode题解:Power of Two
题目链接: ## Pow of Two题目描述: Given an integer, write a function to determine if it is a power of two.题目解释:给定一个整数,实现一个函数,来判断这个整数是否是2的次幂。 比如 8 为 2 的 3次幂, 5 则不是 2 的次幂。解题方案:如果一个数能一路被2整除,直到变成数字1,那么这个数就是2的次幂
2015-07-15 09:00:35 521
原创 LeetCode题解:Invert Binary Tree
题目链接:Invert Binary Tree 题目描述: Invert a binary tree 4 / \ 2 7 / \ / \ 1 3 6 9to 4 / \ 7 2 / \ / \ 9 6 3 1
2015-07-03 21:08:36 409
空空如也
如何实现一个能够显示带有经纬度信息的地图的程序
2014-12-31
C 如何安全的free掉因为字符串拼接(strcat)引起的内存增长的内存
2014-12-16
TA创建的收藏夹 TA关注的收藏夹
TA关注的人