【leetcode】高频题目整理_数组篇( High Frequency Problems, Array )

截止至今LeetCode题目总量已经有1582题,估计将来每年平均增长300题左右,大部分人肯定是刷不完的,所以得有选择地刷LeetCode。

一种公认的刷题策略是按类别刷题,可是每个类别也有许多题,在有限的时间里到底该刷哪些题呢?个人根据LeetCode官方给出的每个题目的出现频率,整理并收录了每个类别里高频出现的题目,对于官方统计频率太低的题目,不予收录,最终得到了这个高频题目表格。

例如,对于下图中题号#275#270的题目将被收录,并且#275出现频率大于#270;而对于题号#1011#1182的题目,因为出现频率太低,将不被收录:在这里插入图片描述

撸起键盘加油干!祝大家成功上岸!整理不易,点个赞吧!


数组篇-132题(Array, 132 problems)

数据日期: 2020/03/26 (此时LeetCode题目数量:1582)
数据来源: LeetCode官方,将不同类别的题目按照官方给的出现频率(Frequency)降序排列,取有频率统计的题。

排序题号题目通过率难度
1#1Two Sum0.479简单
2#4Median of Two Sorted Arrays0.372困难
3#153Sum0.262中等
4#53Maximum Subarray0.499简单
5#42Trapping Rain Water0.495困难
6#11Container With Most Water0.622中等
7#85Maximal Rectangle0.449困难
8#163Sum Closest0.435中等
9#31Next Permutation0.33中等
10#26Remove Duplicates from Sorted Array0.493简单
11#7171-bit and 2-bit Characters0.471简单
12#59Spiral Matrix II0.769中等
13#78Subsets0.769中等
14#39Combination Sum0.686中等
15#121Best Time to Buy and Sell Stock0.538简单
16#45Jump Game II0.335困难
17#88Merge Sorted Array0.471简单
18#184Sum0.374中等
19#64Minimum Path Sum0.651中等
20#56Merge Intervals0.407中等
21#118Pascal’s Triangle0.66简单
22#561Array Partition I0.7简单
23#167Two Sum II - Input array is sorted0.531简单
24#128Longest Consecutive Sequence0.483困难
25#120Triangle0.641中等
26#169Majority Element0.628简单
27#48Rotate Image0.674中等
28#442Find All Duplicates in an Array0.644中等
29#289Game of Life0.696中等
30#105Construct Binary Tree from Preorder and Inorder Traversal0.646中等
31#238Product of Array Except Self0.671中等
32#41First Missing Positive0.378困难
33#287Find the Duplicate Number0.635中等
34#621Task Scheduler0.481中等
35#718Maximum Length of Repeated Subarray0.492中等
36#54Spiral Matrix0.392中等
37#941Valid Mountain Array0.351简单
38#747Largest Number At Least Twice of Others0.39简单
39#122Best Time to Buy and Sell Stock II0.584简单
40#560Subarray Sum Equals K0.443中等
41#448Find All Numbers Disappeared in an Array0.572简单
42#75Sort Colors0.547中等
43#628Maximum Product of Three Numbers0.494简单
44#66Plus One0.436简单
45#33Search in Rotated Sorted Array0.365中等
46#55Jump Game0.385中等
47#27Remove Element0.578简单
48#283Move Zeroes0.601简单
49#62Unique Paths0.596中等
50#216Combination Sum III0.705中等
51#79Word Search0.41中等
52#689Maximum Sum of 3 Non-Overlapping Subarrays0.445困难
53#695Max Area of Island0.632中等
54#697Degree of an Array0.521简单
55#268Missing Number0.548简单
56#152Maximum Product Subarray0.377中等
57#35Search Insert Position0.453简单
58#229Majority Element II0.428中等
59#123Best Time to Buy and Sell Stock III0.422困难
60#119Pascal’s Triangle II0.605简单
61#90Subsets II0.595中等
62#84Largest Rectangle in Histogram0.392困难
63#189Rotate Array0.409简单
64#209Minimum Size Subarray Sum0.418中等
65#57Insert Interval0.371困难
66#1217Play with Chips0.678简单
67#665Non-decreasing Array0.221简单
68#34Find First and Last Position of Element in Sorted Array0.392中等
69#661Image Smoother0.529简单
70#153Find Minimum in Rotated Sorted Array0.502中等
71#217Contains Duplicate0.518简单
72#667Beautiful Arrangement II0.592中等
73#73Set Matrix Zeroes0.552中等
74#219Contains Duplicate II0.379简单
75#40Combination Sum II0.609中等
76#714Best Time to Buy and Sell Stock with Transaction Fee0.635中等
77#81Search in Rotated Sorted Array II0.352中等
78#581Shortest Unsorted Continuous Subarray0.343简单
79#495Teemo Attacking0.531中等
80#162Find Peak Element0.453中等
81#905Sort Array By Parity0.684简单
82#611Valid Triangle Number0.483中等
83#106Construct Binary Tree from Inorder and Postorder Traversal0.675中等
84#1013Partition Array Into Three Parts With Equal Sum0.408简单
85#63Unique Paths II0.326中等
86#565Array Nesting0.567中等
87#414Third Maximum Number0.347简单
88#228Summary Ranges0.517中等
89#485Max Consecutive Ones0.561简单
90#566Reshape the Matrix0.643简单
91#670Maximum Swap0.4中等
92#870Advantage Shuffle0.37中等
93#713Subarray Product Less Than K0.349中等
94#643Maximum Average Subarray I0.381简单
95#80Remove Duplicates from Sorted Array II0.547中等
96#280Wiggle Sort0.684中等
97#605Can Place Flowers0.315简单
98#719Find K-th Smallest Pair Distance0.316困难
99#950Reveal Cards In Increasing Order0.755中等
100#74Search a 2D Matrix0.376中等
101#126Word Ladder II0.318困难
102#154Find Minimum in Rotated Sorted Array II0.478困难
103#1329Sort the Matrix Diagonally0.752中等
104#729My Calendar I0.461中等
105#644Maximum Average Subarray II0.336困难
106#674Longest Continuous Increasing Subsequence0.444简单
107#548Split Array with Equal Sum0.341中等
108#381Insert Delete GetRandom O(1) - Duplicates allowed0.369困难
109#532K-diff Pairs in an Array0.34简单
110#457Circular Array Loop0.332中等
111#962Maximum Width Ramp0.368中等
112#1031Maximum Sum of Two Non-Overlapping Subarrays0.508中等
113#245Shortest Word Distance III0.623中等
114#724Find Pivot Index0.366简单
115#1002Find Common Characters0.667简单
116#380Insert Delete GetRandom O(1)0.478中等
117#954Array of Doubled Pairs0.274中等
118#1386Cinema Seat Allocation0.239中等
119#163Missing Ranges0.248中等
120#370Range Addition0.651中等
121#243Shortest Word Distance0.64简单
122#277Find the Celebrity0.565中等
123#2593Sum Smaller0.557中等
124#1074Number of Submatrices That Sum to Target0.435困难
125#562Longest Line of Consecutive One in Matrix0.394中等
126#533Lonely Pixel II0.454中等
127#978Longest Turbulent Subarray0.392中等
128#1287Element Appearing More Than 25% In Sorted Array0.607简单
129#723Candy Crush0.676中等
130#624Maximum Distance in Arrays0.406简单
131#531Lonely Pixel I0.651中等
132#1232Check If It Is a Straight Line0.508简单

相关/参考链接

leetcode-cn
leetcode

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值