### LeetCode

1 已关注
40篇博文
• #### Leetcode#108. Convert Sorted Array to Binary Search Tree (平衡二叉查找树）

题目Given an array where elements are sorted in ascending order, convert it to a height balanced BST.题...

2017-10-10 13:39
258
• #### Leetcode#66. Plus One &&Add Binary (大数)

周末了，说好的每周三道题题目66Given a non-negative integer represented as a non-empty array of digits, plus one to...

2017-09-23 17:51
49
• #### Leetcode#88. Merge Sorted Array

题目Given two sorted integer arrays nums1 and nums2, merge nums2 into nums1 as one sorted array.Note: ...

2017-09-27 10:54
48
• #### Leetcode#100. Same Tree(判断两个二叉树相同)

题目Given two binary trees, write a function to check if they are equal or not.Two binary trees are co...

2017-09-27 12:29
61
• #### Leetcode#101. Symmetric Tree（对称树）

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

2017-09-27 20:22
80
• #### Leetcode#104. Maximum Depth of Binary Tree(最大二叉树的深度)

题目Given a binary tree, find its maximum depth.The maximum depth is the number of nodes along the lon...

2017-09-27 20:55
53
• #### Leetcode#107. Binary Tree Level Order Traversal II (queue二叉树层次遍历)

题目Given a binary tree, return the bottom-up level order traversal of its nodes’ values. (ie, from le...

2017-10-09 20:14
108
• #### Leetcode#53. Maximum Subarray（连续子序列的最大和）

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

2017-09-16 15:43
290
• #### Leetcode#58. Length of Last Word

题目Given a string s consists of upper/lower-case alphabets and empty space characters ’ ‘, return the...

2017-09-16 16:43
238
• #### Leetcode#27. Remove Element

题目Given an array and a value, remove all instances of that value in place and return the new length....

2017-09-14 15:34
77
• #### Leetcode#28. Implement strStr()（String find()函数的用法）

题目Implement strStr(). Returns the index of the first occurrence of needle in haystack, or -1 if nee...

2017-09-14 17:03
97
• #### Leetcode#35. Search Insert Position

题目Given a sorted array and a target value, return the index if the target is found. If not, return t...

2017-09-14 18:05
99
• #### Leetcode#38. Count and Say (模拟)

题目The count-and-say sequence is the sequence of integers with the first five terms as following: 1 1...

2017-09-14 22:15
177
• #### Leetcode#12. Roman to Integer (阿拉伯数字转化罗马数字）

xuna小记：题目解法使用c++和Python两种，重点侧重在于解题思路和如何将解法用python语言实现。同类题目：罗马数字转化阿拉伯数字http://blog.csdn.net/xunalove/...

2017-08-29 16:08
73
• #### Leetcode#14. Longest Common Prefix （最长公共前缀字符串）

xuna小记：题目解法使用c++和Python两种，重点侧重在于解题思路和如何将解法用python语言实现。题目Write a function to find the longest common ...

2017-08-30 20:55
141
• #### Leetcode#26. Remove Duplicates from Sorted Array

题目Given a sorted array, remove the duplicates in place such that each element appear only once and r...

2017-09-13 22:28
74
• #### Leetcode#13. Roman to Integer (罗马数字转化阿拉伯数字）

xuna小记：题目解法使用c++和Python两种，重点侧重在于解题思路和如何将解法用python语言实现。题目Given a roman numeral, convert it to an inte...

2017-08-29 12:02
200
• #### Leetcode#20. Valid Parentheses（有效括号-栈）

声明：题目解法使用c++和python两种，练习在于如何将c++代码转换为python代码。题目Given a string containing just the characters ‘(‘, ‘...

2017-08-28 22:09
177
• #### Leetcode#8. String to Integer (atoi)（字符串转数字）

题目Implement atoi to convert a string to an integer.Hint: Carefully consider all possible input cases...

2017-08-28 14:05
97
• #### Leetcode#5. Longest Palindromic Substring（最长回文子串：二种解法）

题目Given a string s, find the longest palindromic substring in s. You may assume that the maximum len...

2017-08-26 21:10
313