### LintCode/LeetCode 题解

1 已关注
29篇博文
• #### Find Minimum in Rotated Sorted Array 解题报告

Find Minimum in Rotated Sorted ArrayDescriptionSuppose a sorted array is rotated at some pivot unkno...

2017-05-10 22:34
199
• #### Subtree 解题报告

SubtreeDescriptionYou have two every large binary trees: T1, with millions of nodes, and T2, with hu...

2017-05-10 22:47
181
• #### Remove Nth Node From End of List 解题报告

Remove Nth Node From End of ListDescriptionGiven a linked list, remove the nth node from the end of ...

2017-05-10 22:55
229
• #### Print Numbers by Recursion 解题报告

Print Numbers by RecursionDescriptionPrint numbers from 1 to the largest number with N digits by rec...

2017-05-10 23:16
238
• #### Fast Power 解题报告

Fast PowerDescriptionCalculate the an % b where a, b and n are all 32bit integers.ExampleFor 231 % 3...

2017-05-11 00:15
331
• #### Binary Tree Path Sum 解题报告

Binary Tree Path SumDescriptionGiven a binary tree, find all paths that sum of the nodes in the path...

2017-05-11 00:23
451
• #### Binary Tree Level Order Traversal 解题报告

Binary Tree Level Order TraversalDescriptionGiven a binary tree, return the level order traversal of...

2017-05-11 00:30
163
• #### Copy List with Random Pointer 解题报告

Copy List with Random PointerDescriptionA linked list is given such that each node contains an addit...

2017-05-11 01:00
200
• #### Min Stack 解题报告

Min StackDescriptionImplement a stack with min() function, which will return the smallest number in ...

2017-05-11 10:58
259
• #### Majority Number 解题报告

Majority NumberDescriptionGiven an array of integers, the majority number is the number that occurs ...

2017-05-11 11:11
215
• #### Maximum Subarray 解题报告

Maximum SubarrayDescriptionGiven an array of integers, find a contiguous subarray which has the larg...

2017-05-12 00:20
248
• #### getIntersectionNode 解题报告

getIntersectionNodeDescriptionWrite a program to find the node at which the intersection of two sing...

2017-05-12 00:47
404
• #### Reorder array to construct the minimum number 解题报告

Reorder array to construct the minimum numberDescriptionConstruct minimum number by reordering a giv...

2017-05-12 00:54
637
• #### Kth Largest Element 解题报告

Kth Largest ElementDescriptionFind K-th largest element in an array.NoticeYou can swap elements in t...

2017-05-12 01:46
442
• #### Fizz Buzz 解题报告

Fizz BuzzDescriptionGiven number n. Print number from 1 to n. But:when number is divided by 3, print...

2017-04-25 14:02
267
• #### Fibonacci 解题报告

FibonacciDescriptionFind the Nth number in Fibonacci sequence.A Fibonacci sequence is defined as fol...

2017-04-25 14:36
375
• #### Space Replacement 解题报告

Space ReplacementDescriptionWrite a method to replace all spaces in a string with %20. The string is...

2017-04-25 14:44
432
• #### Count 1 in Binary 解题报告

Count 1 in BinaryDescriptionCount how many 1 in binary representation of a 32-bit integer. Noitce ...

2017-04-25 14:52
321