- 博客(81)
- 资源 (40)
- 收藏
- 关注
原创 LeetCode:Valid Perfect Square
Valid Perfect SquareTotal Accepted: 1976 Total Submissions: 5317 Difficulty: MediumGiven a positive integer num, write a function which returns True if num is a perfect squ
2016-06-28 10:14:30 3150
原创 LeetCode:LRU Cache
LRU CacheTotal Accepted: 76226 Total Submissions: 481333 Difficulty: HardDesign and implement a data structure for Least Recently Used (LRU) cache. It should support the fo
2016-06-23 21:20:33 1736
原创 LeetCode:Lowest Common Ancestor of a Binary Tree
Lowest Common Ancestor of a Binary Tree My SubmissionsQuestionEditorial SolutionTotal Accepted: 46636 Total Submissions: 162074 Difficulty: MediumGiven a binary tree, find th
2016-06-20 17:28:12 1002
原创 LeetCode:Maximal Rectangle
Maximal RectangleTotal Accepted: 43628 Total Submissions: 183613 Difficulty: HardGiven a 2D binary matrix filled with 0's and 1's, find the largest rectangle containing all
2016-06-16 13:10:14 720
原创 LeetCode:Evaluate Reverse Polish Notation
Evaluate Reverse Polish NotationTotal Accepted: 66669 Total Submissions: 278014 Difficulty: MediumEvaluate the value of an arithmetic expression in Reverse Polish Notatio
2016-06-16 11:52:35 1605
原创 LeetCode:Count Numbers with Unique Digits
Count Numbers with Unique DigitsTotal Accepted:2092Total Submissions:4996Difficulty:MediumGiven anon-negativeinteger n, count all numbers with unique digits, x, wher
2016-06-16 11:32:37 2112
原创 LeetCode:Flatten Nested List Iterator
Flatten Nested List IteratorTotal Accepted: 7810 Total Submissions: 26799 Difficulty: MediumGiven a nested list of integers, implement an iterator to flatten it.Each elem
2016-06-16 10:51:57 1090
原创 LeetCode:Verify Preorder Serialization of a Binary Tree
Verify Preorder Serialization of a Binary TreeTotal Accepted: 14360 Total Submissions: 44550 Difficulty: MediumOne way to serialize a binary tree is to use pre-order traver
2016-06-16 09:57:32 1155
原创 LeetCode:String to Integer (atoi)
String to Integer (atoi) Total Accepted: 106573 Total Submissions: 784972 Difficulty: EasyImplement atoi to convert a string to an integer.Hint: Carefully consider all possible input cases. If you wan...
2016-06-15 22:54:20 1875
原创 LeetCode:Remove Invalid Parentheses
Remove Invalid ParenthesesTotal Accepted: 14168 Total Submissions: 43620 Difficulty: HardRemove the minimum number of invalid parentheses in order to make the input string valid.
2016-06-15 22:19:50 1946
原创 LeetCode:First Missing Positive
First Missing PositiveTotal Accepted: 66680 Total Submissions: 277290 Difficulty: HardGiven an unsorted integer array, find the first missing positive integer.For example
2016-06-15 21:43:19 1624
原创 LeetCode:Majority Element II
Majority Element II My SubmissionsQuestionEditorial SolutionTotal Accepted: 30176 Total Submissions: 115847 Difficulty: MediumGiven an integer array of size n, find all eleme
2016-06-15 21:05:30 1311
原创 LeetCode:Largest Rectangle in Histogram
Largest Rectangle in HistogramTotal Accepted: 61747 Total Submissions: 252559 Difficulty: HardGiven n non-negative integers representing the histogram's bar height where th
2016-06-15 20:27:53 1348
原创 LeetCode:4Sum
4SumTotal Accepted: 75786 Total Submissions: 314216 Difficulty: MediumGiven an array S of n integers, are there elements a, b, c, and d in S such that a + b + c + d = tar
2016-06-15 19:19:37 548
原创 LeetCode:3Sum
3SumTotal Accepted: 123026 Total Submissions: 643583 Difficulty: MediumGiven an array S of n integers, are there elements a, b, c in S such that a + b + c = 0? Find all
2016-06-15 17:44:29 639
原创 LeetCode:3Sum Closest
3Sum ClosestTotal Accepted: 80994 Total Submissions: 275223 Difficulty: MediumGiven an array S of n integers, find three integers in S such that the sum is closest to a giv
2016-06-15 17:18:47 591
原创 LeetCode:Jump Game II
Jump Game IITotal Accepted: 65982 Total Submissions: 259300 Difficulty: HardGiven an array of non-negative integers, you are initially positioned at the first index of the
2016-06-15 16:42:00 625
原创 LeetCode:Minimum Size Subarray Sum
Minimum Size Subarray SumTotal Accepted: 41802 Total Submissions: 153088 Difficulty: MediumGiven an array of n positive integers and a positive integer s, find the minimal
2016-06-15 16:03:57 715
原创 LeetCode:Factorial Trailing Zeroes
Factorial Trailing ZeroesTotal Accepted: 42370 Total Submissions: 139281 Difficulty: EasyGiven an integer n, return the number of trailing zeroes in n!.Note: Your solution should b
2016-06-15 12:17:17 1127
原创 LeetCode:Binary Tree Zigzag Level Order Traversal
Binary Tree Zigzag Level Order TraversalTotal Accepted: 63108 Total Submissions: 216632 Difficulty: MediumGiven a binary tree, return the zigzag level order traversal of it
2016-06-15 11:41:41 562
原创 LeetCode:Binary Tree Level Order Traversal II
Binary Tree Level Order Traversal IITotal Accepted: 84098 Total Submissions: 244151 Difficulty: EasyGiven a binary tree, return the bottom-up level order traversal of its n
2016-06-15 11:40:05 1195
原创 LeetCode:Flatten Binary Tree to Linked List
Flatten Binary Tree to Linked ListTotal Accepted: 85094 Total Submissions: 270845 Difficulty: MediumGiven a binary tree, flatten it to a linked list in-place.For example,
2016-06-14 22:26:21 1092
原创 LeetCode:Validate Binary Search Tree
Validate Binary Search TreeTotal Accepted: 96991 Total Submissions: 459613 Difficulty: MediumGiven a binary tree, determine if it is a valid binary search tree (BST).Assu
2016-06-14 22:07:39 1559
原创 LeetCode:Binary Tree Maximum Path Sum
Binary Tree Maximum Path SumTotal Accepted: 66664 Total Submissions: 282541 Difficulty: HardGiven a binary tree, find the maximum path sum.For this problem, a path is def
2016-06-14 21:52:24 1788
原创 LeetCode:Construct Binary Tree from Preorder and Inorder Traversal
Construct Binary Tree from Preorder and Inorder TraversalTotal Accepted: 66121 Total Submissions: 227515 Difficulty: MediumGiven preorder and inorder traversal of a tree, c
2016-06-14 21:31:01 1539
原创 LeetCode:Construct Binary Tree from Inorder and Postorder Traversal
Construct Binary Tree from Inorder and Postorder TraversalTotal Accepted: 57352 Total Submissions: 195355 Difficulty: MediumGiven inorder and postorder traversal of a tree,
2016-06-14 21:00:58 1437
原创 LeetCode:Binary Tree Paths
Binary Tree PathsTotal Accepted: 51384 Total Submissions: 175285 Difficulty: EasyGiven a binary tree, return all root-to-leaf paths.For example, given the following binar
2016-06-14 18:43:55 1293
原创 LeetCode:Path Sum II
Path Sum IITotal Accepted: 84038 Total Submissions: 293138 Difficulty: MediumGiven a binary tree and a sum, find all root-to-leaf paths where each path's sum equals the giv
2016-06-14 18:29:17 1285
原创 LeetCode:Longest Increasing Path in a Matrix
Longest Increasing Path in a MatrixTotal Accepted: 15060 Total Submissions: 46586 Difficulty: HardGiven an integer matrix, find the length of the longest increasing path.
2016-06-14 18:05:01 1026
原创 LeetCode:Burst Balloons
Burst BalloonsTotal Accepted: 10164 Total Submissions: 27045 Difficulty: HardGiven n balloons, indexed from 0 to n-1. Each balloon is painted with a number on it represen
2016-06-14 15:27:16 915
原创 LeetCode:Populating Next Right Pointers in Each Node II
Populating Next Right Pointers in Each Node IITotal Accepted: 63428 Total Submissions: 192670 Difficulty: HardFollow up for problem "Populating Next Right Pointers in Each Node".
2016-06-14 15:21:29 866
原创 LeetCode:Search for a Range
Search for a Range My SubmissionsQuestionEditorial SolutionTotal Accepted: 86572 Total Submissions: 294138 Difficulty: MediumGiven a sorted array of integers, find the starti
2016-06-13 21:38:24 2267
原创 LeetCode:Unique Paths II
Unique Paths IITotal Accepted: 68571 Total Submissions: 231545 Difficulty: MediumFollow up for "Unique Paths":Now consider if some obstacles are added to the grids. How m
2016-06-13 20:53:35 400
原创 Java源码之LinkedHashSet
Java源码之LinkedHashSet转载请注明:一、 LinkedHashSet概述LinkedHashSet是具有可预知迭代顺序的Set接口的哈希表和链接列表实现。此实现与HashSet的不同之处在于,后者维护着一个运行于所有条目的双重链接列表。此链接列表定义了迭代顺序,该迭代顺序可为插入顺序或是访问顺序。注意,此实现不是同步的。如果多个线程同时访问链
2016-06-12 15:39:28 922
原创 LeetCode:Bitwise AND of Numbers Range
Bitwise AND of Numbers RangeTotal Accepted: 35825 Total Submissions: 115763 Difficulty: MediumGiven a range [m, n] where 0 For example, given the range [5, 7], you should
2016-06-11 20:16:43 1839
原创 LeetCode:Trapping Rain Water
Trapping Rain WaterTotal Accepted: 68935 Total Submissions: 211305 Difficulty: HardGiven n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water ...
2016-06-11 15:51:29 1577
原创 LeetCode:Longest Consecutive Sequence
Longest Consecutive SequenceTotal Accepted: 67348 Total Submissions: 206214 Difficulty: HardGiven an unsorted array of integers, find the length of the longest consecutive
2016-06-11 15:08:27 747
原创 LeetCode:Remove Duplicates from Sorted Array II
Remove Duplicates from Sorted Array IITotal Accepted: 77330 Total Submissions: 233813 Difficulty: MediumFollow up for "Remove Duplicates":What if duplicates are allowed a
2016-06-11 14:46:39 1624
原创 LeetCode:Sum Root to Leaf Numbers
Sum Root to Leaf NumbersTotal Accepted: 78569 Total Submissions: 237646 Difficulty: MediumGiven a binary tree containing digits from 0-9 only, each root-to-leaf path coul
2016-06-11 14:29:24 1727
原创 LeetCode:Kth Largest Element in an Array
Kth Largest Element in an ArrayTotal Accepted:59659Total Submissions:175932Difficulty:MediumFind thekth largest element in an unsorted array. Note that it is the kth la
2016-06-11 14:20:31 1542
WebGL编程指南 [KouichiMatsuda著;RodgerLea著;谢光磊][电子工业出版社][2014.06][470页]
2015-12-28
《OpenGL ES 2.0 开发向导》源码
2018-12-28
Android 开发艺术探索高清完整版(电子版)
2018-08-22
FFmpeg4Android:视频文件推流
2018-03-30
程序员接单宝典_第3版_韦刃著
2016-01-05
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人