您好,欢迎来到网暖!

当前位置:网暖 » 站长资讯 » 建站基础 » 网络技术 » 文章详细 订阅RssFeed

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

来源:网络整理 浏览:221次 时间:2021-12-04

截止至今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

推荐站点

  • 腾讯腾讯

    腾讯网(www.QQ.com)是中国浏览量最大的中文门户网站,是腾讯公司推出的集新闻信息、互动社区、娱乐产品和基础服务为一体的大型综合门户网站。腾讯网服务于全球华人用户,致力成为最具传播力和互动性,权威、主流、时尚的互联网媒体平台。通过强大的实时新闻和全面深入的信息资讯服务,为中国数以亿计的互联网用户提供富有创意的网上新生活。

    www.qq.com
  • 搜狐搜狐

    搜狐网是全球最大的中文门户网站,为用户提供24小时不间断的最新资讯,及搜索、邮件等网络服务。内容包括全球热点事件、突发新闻、时事评论、热播影视剧、体育赛事、行业动态、生活服务信息,以及论坛、博客、微博、我的搜狐等互动空间。

    www.sohu.com
  • 网易网易

    网易是中国领先的互联网技术公司,为用户提供免费邮箱、游戏、搜索引擎服务,开设新闻、娱乐、体育等30多个内容频道,及博客、视频、论坛等互动交流,网聚人的力量。

    www.163.com
  • 新浪新浪

    新浪网为全球用户24小时提供全面及时的中文资讯,内容覆盖国内外突发新闻事件、体坛赛事、娱乐时尚、产业资讯、实用信息等,设有新闻、体育、娱乐、财经、科技、房产、汽车等30多个内容频道,同时开设博客、视频、论坛等自由互动交流空间。

    www.sina.com.cn
  • 百度一下百度一下

    百度一下,你就知道

    www.baidu.com