LeetCode刷题汇总(长期置顶)



之前就刷过 LeetCode,最近实在是被 Virtual Judge 的速度逼疯了,用了一波 LeetCode感觉除了题目较少以外真的很棒,搞个汇总贴,用点时间尽快考虑刷完大部分的LeetCode的题目.以前有一段时间(大概一两个星期?)集中干掉了大部分 leetcode的 easy,那些题目就不做汇总了,太 easy 了.碰到稍微复杂的题目我会专门写个博客贴代码讲解

工作太忙了^_^,也没有那么多时间刷题

—————————————————————————————————————————————————-

2019-02-14 更新: 过年期间事儿比较多没有刷题,今天起继续

table order by date

题目编号 博客地址 代码击败百分比 难度 语言 日期
1 two-sum 47.76% Easy Java 2019-01-17
15 3sum 38.19% Medium Java 2019-01-17
16 3Sum Closest 11.67% Medium Java 2019-01-17
18 4sum 27.97% Medium Java 2019-01-17
488 Zuma Game 100% Hard Java 2019-01-28
91 Decode Ways 91.16%/9.52% Medium Java 2019-01-29
60 Permutation Sequence 44.44%/71.49% Medium Java 2019-01-29
826 Most Profit Assigning Work 37.5%/60.72% Medium Java 2019-01-30
509 fibonacci-number 100% Easy Java 2019-01-30
169 Majority Element 100% Easy Java 2019-01-31
229 Majority Element II 97.92% Medium Java 2019-01-31
713 Subarray Product Less Than K 95.16% Medium Java 2019-02-02
152 Maximum Product Subarray 98.58% Medium Java 2019-02-02
560 Subarray Sum Equals K 99.05% Medium Java 2019-02-03
523 Continuous Subarray Sum 99.02% Medium Java 2019-02-03
923 3Sum With Multiplicity 6.75%/99.17% Medium Java 2019-02-14
821 Shortest Distance to a Character 23.71%/95.72% Easy Java 2019-02-14
206 Reverse Linked List 100% Easy Java 2019-02-18
2 Add Two Numbers 92% Medium Java 2019-02-19
3 Longest Substring Without Repeating 86.07% Medium Java 2019-02-19
4 Median of Two Sorted Arrays 89.58% Hard Java 2019–02-22
5 Longest Palindromic Substring 98.7% Medium Java 2019-02-22
6 ZigZag Conversion 95.57% Medium Java 2019-02-22
146 LRU Cache 92.45% Hard Java 2019-02-23
75 Sort Colors 100% Medium Java 2019-02-23
50 Pow(x, n) 99.44% Medium Java 2019-02-23
33 Search in Rotated Sorted Array 100% Medium Java 2019-02-25
215 Kth Largest Element in an Array 83.21% Medium Java 2019-02-25
53 Maximum Subarray 99.95% Easy Java 2019-02-25
58 Length of Last Word 100% Easy Java 2019-02-25
62 Unique Paths 100% Medium Java 2019-02-26
94 Binary Tree Inorder Traversal 100% Medium Java 2019-02-26
112 Path Sum 100% Easy Java 2019-02-27
113 Path Sum II 53.87% Medium Java 2019-02-27
124 Binary Tree Maximum 99.82% Hard Java 2019-02-28
138 Copy List with Random Pointer 100% Medium Java 2019-03-01
904 Fruit Info Baskets 53.07%/100% Medium Java 2019-03-01
42 Trapping Rain Water 99.98% Hard Java 2019-03-03
746 Min Cost Climbing Stairs 99.39% Easy Java 2019-03-04
235 Lowest Common Ancestor of a Binary Search Tree 100% Easy Java 2019-03-04
236 Lowest Common Ancestor of a Binary Tree 5.06%/91.03% Medium Java 2019-03-04
56 Merge Intervals 44.68% Medium Java 2019-03-05
435 Non-overlapping Intervals 100% Medium Java 2019-03-05
23 Merge k Sorted Lists 30.99% Hard Java 2019-03-06
301 Remove Invalid Parentheses 40.07% Hard Java 2019-03-07
253 Meeting Rooms II 39.88%/33.27% Medium Java 2019-03-08
252 Meeting Rooms 37.22%/99.94% Easy Java 2019-03-09
11 Container With Most Water 100% Medium Java 2019-03-09
446 Arithmetic Slices II - Subsequence 83.60% Hard Java 2019-03-10
654 Maximum Binary Tree 100% Medium Java 2019-03-10
238 Product of Array Except Self 100% Medium Java 2019-03-11
22 Generate Parentheses 100% Medium Java 2019-03-11
31 Next Permutation 97.09% Medium Java 2019-03-12
322 Coin Change 61.45% Medium Java 2019-03-12
8 String to Integer (atoi) 85.92% Medium Java 2019-03-13
10 Regular Expression Matching 14.68% Hard Java 2019-03-14
54 Spiral Matrix 100% Medium Java 2019-03-17
289 Game of Life 100% Medium Java 2019-03-17
84 Largest Rectangle in Histogram 98.93% Hard Java 2019-03-18
85 Maximal Rectangle 48.48%/91.26% Hard Java 2019-03-20
88 Merge Sorted Array 33.42% Easy Java 2019-03-21
41 First Missing Positive 85.07% Hard Java 2019-03-22
380 Insert Delete GetRandom O(1) 99.21% Medium Java 2019-03-22
621 Task Scheduler 91.60% Medium Java 2019-03-23
月月说要给我打赏,就还是放了二维码,😝