![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
leetcode
daqiang95
这个作者很懒,什么都没留下…
展开
-
LeetCode 168. Excel Sheet Column Title 解题报告
题目描述:168. Excel Sheet Column Title Given a positive integer, return its corresponding column title as appear in an Excel sheet.For example: 1 -> A 2 -> B 3 -> C原创 2016-09-12 00:59:26 · 528 阅读 · 0 评论 -
LeetCode 213. House Robber II 题解
213. House Robber II QuestionEditorial Solution My SubmissionsTotal Accepted: 41692Total Submissions: 127872Difficulty: MediumContributors: AdminNote: This is an ex原创 2016-10-24 15:30:54 · 208 阅读 · 0 评论 -
LeetCode 200. Number of Islands 题解
200. Number of Islands QuestionEditorial Solution My SubmissionsTotal Accepted: 67432Total Submissions: 219192Difficulty: MediumContributors: AdminGiven a 2d grid m原创 2016-10-14 00:57:23 · 324 阅读 · 0 评论 -
LeetCode 102. Binary Tree Level Order Traversal 题解
102. Binary Tree Level Order Traversal QuestionEditorial Solution My SubmissionsTotal Accepted: 130184Total Submissions: 365689Difficulty: EasyContributors: AdminGi原创 2016-10-15 00:04:49 · 245 阅读 · 0 评论 -
LeetCode 107 Binary Tree Level Order Traversal II题解
107.Binary Tree Level Order Traversal IIEditorial Solution My SubmissionsTotal Accepted: 100387Total Submissions: 274339Difficulty: EasyContributors: AdminG原创 2016-10-15 00:21:33 · 237 阅读 · 0 评论 -
Leet Code 103. Binary Tree Zigzag Level Order Traversal 题解
103. Binary Tree Zigzag Level Order Traversal QuestionEditorial Solution My SubmissionsTotal Accepted: 75753Total Submissions: 243834Difficulty: MediumContributors: Admin原创 2016-10-15 00:43:39 · 200 阅读 · 0 评论 -
LeetCode 413. Arithmetic Slices 题解
413. Arithmetic Slices QuestionEditorial Solution My SubmissionsTotal Accepted: 3109Total Submissions: 5803Difficulty: MediumContributors: XiangyuLi926A sequence of原创 2016-10-26 00:34:21 · 334 阅读 · 0 评论 -
LeetCode 101. Symmetric Tree 题解
101. Symmetric Tree QuestionEditorial Solution My SubmissionsTotal Accepted: 135050Total Submissions: 374655Difficulty: EasyContributors: AdminGiven a binary tree,原创 2016-10-16 00:32:24 · 307 阅读 · 0 评论 -
LeetCode 357. Count Numbers with Unique Digits 题解
357. Count Numbers with Unique Digits QuestionEditorial Solution My SubmissionsTotal Accepted: 19808Total Submissions: 44589Difficulty: MediumContributors: Admin原创 2016-10-26 17:17:16 · 220 阅读 · 0 评论 -
LeetCode 96. Unique Binary Search Trees 题解
96. Unique Binary Search Trees QuestionEditorial Solution My SubmissionsTotal Accepted: 100404Total Submissions: 255889Difficulty: MediumContributors: AdminGiven n,原创 2016-10-28 11:43:08 · 235 阅读 · 0 评论 -
8. String to Integer (atoi) 题解
题目描述:8. String to Integer (atoi) Implement atoi to convert a string to an integer.Hint: Carefully consider all possible input cases. If you want a challenge, please do not see原创 2016-10-05 01:11:06 · 307 阅读 · 0 评论 -
LeetCode 62. Unique Paths 题解
题目描述:62. Unique Paths QuestionEditorial Solution My SubmissionsTotal Accepted: 106575Total Submissions: 279213Difficulty: MediumA robot is located a原创 2016-10-05 17:32:32 · 273 阅读 · 0 评论 -
LeetCode 343. Integer Break 题解
343. Integer Break QuestionEditorial Solution My SubmissionsTotal Accepted: 29402Total Submissions: 66455Difficulty: MediumContributors: AdminGiven a positive integ原创 2016-10-28 17:01:52 · 253 阅读 · 0 评论 -
LeetCode 310. Minimum Height Trees题解
310. Minimum Height Trees QuestionEditorial Solution My SubmissionsTotal Accepted: 21692Total Submissions: 77582Difficulty: MediumContributors: AdminFor a undirecte原创 2016-10-19 18:26:42 · 269 阅读 · 0 评论 -
LeetCode 257. Binary Tree Paths 题解
257. Binary Tree Paths QuestionEditorial Solution My SubmissionsTotal Accepted: 70120Total Submissions: 214949Difficulty: EasyGiven a binary tree, return all root-t原创 2016-10-07 01:04:43 · 201 阅读 · 0 评论 -
LeetCode 39. Combination Sum 题解
39. Combination Sum QuestionEditorial Solution My SubmissionsTotal Accepted: 124666Total Submissions: 357084Difficulty: MediumContributors: AdminGiven a set of cand原创 2016-11-16 15:16:52 · 450 阅读 · 0 评论 -
LeetCode 300. Longest Increasing Subsequence 题解
300. Longest Increasing Subsequence Add to ListQuestionEditorial Solution My SubmissionsTotal Accepted: 55308Total Submissions: 149684Difficulty: MediumContributors:原创 2016-11-23 15:30:34 · 284 阅读 · 0 评论 -
LeetCode 120. Triangle 题解
120. Triangle Add to ListQuestionEditorial Solution My SubmissionsTotal Accepted: 87816Total Submissions: 273424Difficulty: MediumContributors: AdminGiven a t原创 2016-11-23 15:46:32 · 255 阅读 · 0 评论 -
LeetCode 279. Perfect Squares 题解
279. Perfect Squares QuestionEditorial Solution My SubmissionsGiven a positive integer n, find the least number of perfect square numbers (for example, 1, 4, 9, 16, ...原创 2016-11-04 00:44:17 · 291 阅读 · 0 评论 -
LeetCode 198. House Robber 题解
198. House Robber QuestionEditorial Solution My SubmissionsTotal Accepted: 98866Total Submissions: 269326Difficulty: EasyContributors: AdminYou are a professional r原创 2016-10-24 00:36:42 · 299 阅读 · 0 评论 -
LeetCode 19. Remove Nth Node From End of List 解题报告
题目描述:Given a linked list, remove the nth node from the end of list and return its head.For example, Given linked list: 1->2->3->4->5, and n = 2. After removing the second node from t原创 2016-09-03 20:06:55 · 334 阅读 · 2 评论 -
LeetCode 169. Majority Element 题解
题目描述:169. Majority Element Given an array of size n, find the majority element. The majority element is the element that appears more than ⌊ n/2 ⌋ times.You may assume that the a原创 2016-09-12 01:10:21 · 337 阅读 · 0 评论 -
LeetCode 396. Rotate Function 解题报告
题目描述:396. Rotate Function Given an array of integers A and let n to be its length.Assume Bk to be an array obtained by rotating the array A k positions clock-wise, we define a原创 2016-09-12 16:03:44 · 514 阅读 · 0 评论 -
LeetCode 6. ZigZag Conversion 解题报告
LeetCode 6. ZigZag Conversion 解题报告原创 2016-09-01 00:27:18 · 288 阅读 · 0 评论 -
LeetCode 112. Path Sum 题解
112. Path Sum QuestionEditorial Solution My SubmissionsGiven a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values alo原创 2016-10-09 01:05:19 · 232 阅读 · 0 评论 -
LeetCode 172. Factorial Trailing Zeroes题解
题目描述:172. Factorial Trailing Zeroes Given an integer n, return the number of trailing zeroes in n!.Note: Your solution should be in logarithmic time complexity.原创 2016-09-20 19:33:16 · 257 阅读 · 0 评论 -
LeetCode 111. Minimum Depth of Binary Tree 题解
111. Minimum Depth of Binary TreeGiven a binary tree, find its minimum depth.The minimum depth is the number of nodes along the shortest path from the root node down to the nearest原创 2016-10-10 00:39:02 · 186 阅读 · 0 评论 -
LeetCode 202. Happy Number 题解
题目描述:202. Happy Number Write an algorithm to determine if a number is "happy".A happy number is a number defined by the following process: Starting with any posit原创 2016-09-20 23:48:23 · 218 阅读 · 0 评论 -
LeetCode 110. Balanced Binary Tree 题解
题目描述:110. Balanced Binary Tree Given a binary tree, determine if it is height-balanced.For this problem, a height-balanced binary tree is defined as a binary原创 2016-10-11 19:01:44 · 186 阅读 · 0 评论 -
LeetCode 100. Same Tree 题解
问题描述:100. Same Tree 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原创 2016-10-11 19:14:58 · 200 阅读 · 0 评论 -
LeetCode 129. Sum Root to Leaf Numbers 题解
129. Sum Root to Leaf Numbers QuestionEditorial Solution My SubmissionsTotal Accepted: 91108Total Submissions: 264689Difficulty: MediumGiven a binary tree containin原创 2016-10-11 20:30:42 · 221 阅读 · 0 评论 -
LeetCode 207. Course Schedule 题解
207. Course Schedule There are a total of n courses you have to take, labeled from 0 to n - 1.Some courses may have prerequisites, for example to take course 0 you have to first原创 2016-10-12 00:58:52 · 337 阅读 · 0 评论 -
Leetcode 435. Non-overlapping Intervals题解
435. Non-overlapping Intervals QuestionEditorial Solution My SubmissionsTotal Accepted: 1112Total Submissions: 3007Difficulty: MediumContributors: love_FDU_llpGiven原创 2016-11-02 21:32:51 · 931 阅读 · 0 评论 -
LeetCode 392. Is Subsequence 题解
392. Is Subsequence QuestionEditorial Solution My SubmissionsTotal Accepted: 14531Total Submissions: 33296Difficulty: MediumContributors: AdminGiven a string s and原创 2016-11-02 16:37:50 · 524 阅读 · 0 评论 -
LeetCode 210. Course Schedule II 题解
210. Course Schedule II Total Accepted: 39355Total Submissions: 165528Difficulty: MediumThere are a total of n courses you have to take, labeled from 0 to n - 1.Some course原创 2016-10-13 00:05:53 · 399 阅读 · 0 评论 -
LeetCode 199. Binary Tree Right Side View 题解
199. Binary Tree Right Side View QuestionEditorial Solution My SubmissionsTotal Accepted: 59906Total Submissions: 158112Difficulty: MediumContributors: AdminGiven a原创 2016-11-03 16:41:55 · 336 阅读 · 0 评论 -
LeetCode 401. Binary Watch 题解
题目描述:401. Binary Watch A binary watch has 4 LEDs on the top which represent the hours (0-11), and the 6 LEDs on the bottom represent the minutes (0-59).Each LED represent原创 2016-09-27 20:30:21 · 479 阅读 · 2 评论 -
LeetCode 417. Pacific Atlantic Water Flow 题解
417. Pacific Atlantic Water Flow Add to ListQuestionEditorial Solution My SubmissionsTotal Accepted: 5223Total Submissions: 16297Difficulty: MediumContributors: Admin原创 2016-11-23 23:56:04 · 420 阅读 · 0 评论