
leetcode
dwt0317
这个作者很懒,什么都没留下…
展开
-
Array(9) -- Container With Most Water,Insert Delete GetRandom O(1) I, II
Container With Most Water, Insert Delete GetRandom O(1), Insert Delete GetRandom O(1) - Duplicates allowed翻译 2016-12-23 23:00:46 · 209 阅读 · 0 评论 -
Array(8) -- Search Insert Position,3Sum,4Sum
Search Insert Position, 3Sum,4Sum,3Sum Closest翻译 2016-12-22 20:47:48 · 241 阅读 · 0 评论 -
Array(7) -- Jump Game,Missing Number,Combination Sum
Jump Game, Missing Number, Combination Sum翻译 2016-12-20 23:00:46 · 206 阅读 · 0 评论 -
Array(6) -- Maximum Subarray,Rotate Image,Unique Paths II,Spiral Matrix I, II
Maximum Subarray,Rotate Image,Unique Paths II,Spiral Matrix,Spiral Matrix II原创 2016-12-19 22:08:23 · 291 阅读 · 0 评论 -
Array(5) -- Sort Colors,Set Matrix Zeroes
Sort Colors,Set Matrix Zeroes,Unique Paths原创 2016-12-16 22:14:51 · 513 阅读 · 0 评论 -
Array(4) -- Rotate Array
Rotate Array原创 2016-12-15 22:40:58 · 333 阅读 · 0 评论 -
Array(3) -- Merge Sorted Array, Search in Rotated Sorted Array I, II, Triangle, Subsets II
Merge Sorted Array,Search in Rotated Sorted Array,Search in Rotated Sorted Array II,Triangle,Subsets II原创 2016-12-13 22:19:40 · 292 阅读 · 0 评论 -
Array(2) -- Pascal's Triangle II,Maximum Product Subarray,Word Search,Majority Element II, S R
Pascal's Triangle II,Maximum Product Subarray,Word Search,Majority Element II,Summary Ranges原创 2016-12-12 20:55:19 · 252 阅读 · 0 评论 -
Array(1) -- Move Zeroes,Contains Duplicate II,Two Sum,Pascal's Triangle
Move Zeroes,Contains Duplicate II,Two Sum,Pascal's Triangle原创 2016-12-03 20:47:17 · 271 阅读 · 0 评论 -
Sort (1) -- 常用排序
排序总结原创 2017-01-15 20:38:05 · 848 阅读 · 0 评论 -
Binary search (3) -- 4Sum II, Kth Smallest Element in a BST
4Sum II,Kth Smallest Element in a BST原创 2017-01-17 22:33:38 · 393 阅读 · 0 评论 -
Binary search (2) -- Heaters, Valid Perfect Square
Heaters,Valid Perfect Square原创 2017-01-16 21:48:35 · 391 阅读 · 0 评论 -
Binary search(1) -- First Bad Version, Arranging Coins
First Bad Version,Arranging Coins原创 2017-01-16 11:57:21 · 233 阅读 · 0 评论 -
Array(10) -- Insert Interval, Merge Intervals, Trapping Rain Water, Next Permutation
Insert Interval, Merge Intervals, Trapping Rain Water, Next Permutation翻译 2016-12-29 17:02:09 · 244 阅读 · 0 评论 -
Array(11) -- Largest Rectangle in Histogram, Maximal Rectangle, Find the Duplicate Number
Largest Rectangle in Histogram, Maximal Rectangle, Find the Duplicate Number翻译 2016-12-31 22:03:22 · 227 阅读 · 0 评论 -
Two pointers (1) -- Linked List Cycle II, Rotate List
Linked List Cycle II,Rotate List原创 2017-01-22 16:04:34 · 396 阅读 · 0 评论 -
DP (10) -- Wiggle Subsequence,Search a 2D Matrix II
Wiggle Subsequence, Search a 2D Matrix II原创 2017-01-12 17:40:11 · 273 阅读 · 0 评论 -
DP (9) -- Maximal Square, Maximal Rectangle,House Robber II
Maximal Square, Maximal Rectangle, House Robber II原创 2017-01-12 16:34:24 · 247 阅读 · 0 评论 -
DP (8) -- Is Subsequence,Ugly Number II
Is Subsequence,Ugly Number II原创 2017-01-11 22:43:28 · 219 阅读 · 0 评论 -
DP (7) -- Ones and Zeroes, Longest Increasing Subsequence, Perfect Squares
Ones and Zeroes,Longest Increasing Subsequence,Guess Number Higher or Lower II原创 2017-01-11 14:55:25 · 287 阅读 · 0 评论 -
DP (6) -- Best Time to Buy and Sell Stock with Cooldown,Range Sum Query 2D - Immutable
Best Time to Buy and Sell Stock with Cooldown, Range Sum Query 2D - Immutable原创 2017-01-10 22:29:26 · 228 阅读 · 0 评论 -
DP(5) -- Word Break, Partition Equal Subset Sum,Arithmetic Slices
Word Break,Partition Equal Subset Sum, Arithmetic Slices原创 2017-01-09 21:02:06 · 273 阅读 · 0 评论 -
DP (3) -- Count Numbers with Unique Digits,Decode Ways,Unique Binary Search Trees I, II
Count Numbers with Unique Digits,Unique Binary Search Trees, Unique Binary Search Trees II原创 2017-01-05 22:53:38 · 245 阅读 · 0 评论 -
DP (2) -- Can I Win, Counting Bits,Integer Break
Can I Win,Counting Bits,Integer Break原创 2017-01-05 11:06:39 · 311 阅读 · 0 评论 -
Divide and Conquer (1) -- Kth Largest Element in an Array,Different Ways to Add Parentheses
Kth Largest Element in an Array,Different Ways to Add Parentheses原创 2017-01-12 22:59:42 · 255 阅读 · 0 评论 -
DP (1) -- Range Sum Query - Immutable, House Robber, Climbing Stairs
Range Sum Query - Immutable,House Robber原创 2017-01-04 20:27:23 · 253 阅读 · 0 评论 -
Binary search (4) -- Find Right Interval,Count Complete Tree Nodes,Divide Two Integers
Find Right Interval,Count Complete Tree Nodes,Divide Two Integers原创 2017-01-18 15:12:29 · 274 阅读 · 0 评论 -
Trie (2) -- Add and Search Word - Data structure design
Add and Search Word - Data structure design原创 2017-01-26 20:16:59 · 304 阅读 · 0 评论 -
Trie (3) -- Maximum XOR of Two Numbers in an Array
Maximum XOR of Two Numbers in an Array原创 2017-01-26 21:37:14 · 398 阅读 · 0 评论 -
Trie (1) -- Implement Trie (Prefix Tree)
Implement Trie (Prefix Tree)原创 2017-01-26 16:40:25 · 472 阅读 · 0 评论 -
Array(12) -- Longest Consecutive Sequence, First Missing Positive, Buy and Sell Stock III, Find Mini
Longest Consecutive Sequence,First Missing Positive, Best Time to Buy and Sell Stock III, Find Minimum in Rotated Sorted Array II原创 2017-01-04 16:09:29 · 258 阅读 · 0 评论 -
DP (4) -- Largest Divisible Subset, Coin Change, Unique Substrings in Wraparound String
Largest Divisible Subset,Coin Change,Unique Substrings in Wraparound String原创 2017-01-08 20:47:13 · 218 阅读 · 0 评论 -
Two pointers (2) -- Partition List,Valid Palindrome
Partition List,Valid Palindrome原创 2017-01-22 18:01:50 · 401 阅读 · 0 评论 -
Two pointers (3) -- Merge Sorted Array, Reverse Vowels of a String
Merge Sorted Array, Reverse Vowels of a String原创 2017-01-22 21:02:48 · 388 阅读 · 0 评论 -
Two pointers (5) -- Remove Duplicates from Sorted Array I, II, Move Zeroes, Remove Element
Remove Duplicates from Sorted Array,Remove Duplicates from Sorted Array II,Move Zeroes原创 2017-01-22 22:10:36 · 375 阅读 · 0 评论 -
Two pointers (6) -- Palindrome Linked List, Remove Nth Node From End of List
Palindrome Linked List,Implement strStr(), Remove Nth Node From End of List原创 2017-01-22 22:43:03 · 221 阅读 · 0 评论 -
Two pointers (7) -- Longest Substring Without Repeating Characters, Substring with Concatenation of
Longest Substring Without Repeating Characters,Substring with Concatenation of All Words原创 2017-01-23 11:03:14 · 261 阅读 · 0 评论 -
Two pointers (8) -- Minimum Window Substring
Minimum Window Substring原创 2017-01-23 17:56:55 · 228 阅读 · 0 评论 -
leetcode -- Binary search (6)
Kth Smallest Element in a Sorted Matrix, Intersection of Two Arrays II原创 2017-01-19 17:34:22 · 436 阅读 · 0 评论 -
leetcode -- Binary search (5)
Sqrt(x)Implement int sqrt(int x).Compute and return the square root of x.解法1:二分法。先进行猜测,然后不断逼近。 int mySqrt(int x) { long left = 0; long right = x; while (left <原创 2017-01-19 15:16:58 · 443 阅读 · 0 评论