### leetcode解题报告

0 已关注
12篇博文
• #### [leetcode] Sum of Two Integers--用位运算实现加法运算

问题：Calculate the sum of two integers a and b, but you are not allowed to use the operator + and -.Ex...

2016-07-06 21:13
5634
• #### [leetcode] Pow(x, n)

题目：Implement pow(x, n).分析： 题目很短，就是实现pow求幂函数，直觉告诉我，这个题目的主要要求是降低程序的时间复杂度，果不其然，提交了一份带有while循环复杂度是O(n)的...

2016-03-23 19:41
1265
• #### [leetcode]Path Sum II

Given a binary tree and a sum, find all root-to-leaf paths where each path's sum equals the given su...

2016-03-22 19:41
1075
• #### [leetcode]Minimum Depth of Binary Tree--二叉树层序遍历的应用

题目：Given a binary tree, find its minimum depth.The minimum depth is the number of nodes along the sh...

2016-03-16 18:16
920
• #### [leetcode]Path Sum--巧用递归

题目：Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up ...

2016-03-14 13:50
1344
• #### leetcode Binary Tree Paths

题目：Given a binary tree, return all root-to-leaf paths.For example, given the following binary tree: ...

2015-12-11 21:01
908
• #### [leetcode] Symmetric Tree－－二叉树遍历的应用

题目：Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center).For...

2016-03-12 23:13
992
• #### LeetCode Maximum Subarray 通俗讲解解法的背后原理

题目：Find the contiguous subarray within an array (containing at least one number) which has the large...

2015-10-25 18:10
2047
• #### LeetCode ZigZag Conversion

题目：The string "PAYPALISHIRING" is written in a zigzag pattern on a given number of rows like this: (...

2015-10-14 22:27
1311
• #### LeetCode Single Number III （Java和Python代码）

题目Given an array of numbers nums, in which exactly two elements appear only once and all the other e...

2015-10-13 17:06
713
• #### LeetCode Plus One

问题：Given a non-negative number represented as an array of digits, plus one to the number.The digits ...

2015-10-11 22:01
376
• #### Leetcode Move Zeros

Given an array nums, write a function to move all 0’s to the end of it while maintaining the relativ...

2015-10-09 17:48
630