- 博客(47)
- 问答 (2)
- 收藏
- 关注
原创 Tree (16) -- Validate Binary Search Tree
Validate Binary Search TreeGiven a binary tree, determine if it is a valid binary search tree (BST). bool isValid(TreeNode* root, long long maxLimit, long long minLimit){ if(root=
2017-03-10 16:53:48
375
原创 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
原创 Trie (2) -- Add and Search Word - Data structure design
Add and Search Word - Data structure design
2017-01-26 20:16:59
304
原创 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
原创 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
原创 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
原创 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
原创 Two pointers (2) -- Partition List,Valid Palindrome
Partition List,Valid Palindrome
2017-01-22 18:01:50
401
原创 Two pointers (1) -- Linked List Cycle II, Rotate List
Linked List Cycle II,Rotate List
2017-01-22 16:04:34
396
原创 leetcode -- Binary search (6)
Kth Smallest Element in a Sorted Matrix, Intersection of Two Arrays II
2017-01-19 17:34:22
436
原创 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
442
原创 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
原创 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
原创 Binary search (2) -- Heaters, Valid Perfect Square
Heaters,Valid Perfect Square
2017-01-16 21:48:35
391
原创 Binary search(1) -- First Bad Version, Arranging Coins
First Bad Version,Arranging Coins
2017-01-16 11:57:21
233
原创 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
原创 DP (10) -- Wiggle Subsequence,Search a 2D Matrix II
Wiggle Subsequence, Search a 2D Matrix II
2017-01-12 17:40:11
273
原创 DP (9) -- Maximal Square, Maximal Rectangle,House Robber II
Maximal Square, Maximal Rectangle, House Robber II
2017-01-12 16:34:24
247
原创 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
原创 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
原创 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
原创 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
原创 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
原创 DP (2) -- Can I Win, Counting Bits,Integer Break
Can I Win,Counting Bits,Integer Break
2017-01-05 11:06:39
311
原创 DP (1) -- Range Sum Query - Immutable, House Robber, Climbing Stairs
Range Sum Query - Immutable,House Robber
2017-01-04 20:27:23
253
原创 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
翻译 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
翻译 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
翻译 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
翻译 Array(8) -- Search Insert Position,3Sum,4Sum
Search Insert Position, 3Sum,4Sum,3Sum Closest
2016-12-22 20:47:48
240
翻译 Array(7) -- Jump Game,Missing Number,Combination Sum
Jump Game, Missing Number, Combination Sum
2016-12-20 23:00:46
206
原创 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
原创 Array(5) -- Sort Colors,Set Matrix Zeroes
Sort Colors,Set Matrix Zeroes,Unique Paths
2016-12-16 22:14:51
513
原创 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
空空如也
hibernate框架 使用sql语句 select count查询不到。。
2014-07-29
hibernate框架 使用sql语句 select count查询不到。。
2014-07-29
TA创建的收藏夹 TA关注的收藏夹
TA关注的人