您的位置:首页 > 产品设计 > UI/UE

【leetcode】高频题目整理_其他杂项篇( High Frequency Problems, Miscellaneous )

2021-04-17 23:45 961 查看

截止至今LeetCode题目总量已经有

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

一种公认的刷题策略是

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

例如,对于下图中题号

#275
#270
的题目将被收录,并且
#275
出现频率大于
#270
;而对于题号
#1011
#1182
的题目,因为出现频率太低,将不被收录:

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

其他杂项篇(Miscellaneous)

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

说明:
本篇比较特殊,是由多个类别的题目组合而成,之所以这么做是因为这些类别下题目数实在太少,因此就放到了一起。

并查集(Union Find)

排序题号题目通过率难度
1#128Longest Consecutive Sequence0.483困难
2#399Evaluate Division0.537中等
3#200Number of Islands0.478中等
4#130Surrounded Regions0.398中等
5#684Redundant Connection0.571中等
6#547Friend Circles0.557中等
7#721Accounts Merge0.323中等
8#685Redundant Connection II0.335困难
9#305Number of Islands II0.315困难
10#323Number of Connected Components in an Undirected Graph0.553中等
11#261Graph Valid Tree0.449中等
12#737Sentence Similarity II0.41中等

分治法(Divide and Conquer)

排序题号题目通过率难度
1#4Median of Two Sorted Arrays0.372困难
2#53Maximum Subarray0.499简单
3#23Merge k Sorted Lists0.496困难
4#312Burst Balloons0.584困难
5#169Majority Element0.628简单
6#218The Skyline Problem0.414困难
7#241Different Ways to Add Parentheses0.708中等
8#215Kth Largest Element in an Array0.618中等
9#315Count of Smaller Numbers After Self0.372困难
10#327Count of Range Sum0.329困难
11#282Expression Add Operators0.331困难
12#493Reverse Pairs0.235困难
13#514Freedom Trail0.38困难
14#240Search a 2D Matrix II0.396中等

滑动窗口(Sliding Window)

排序题号题目通过率难度
1#3Longest Substring Without Repeating Characters0.335中等
2#76Minimum Window Substring0.355困难
3#424Longest Repeating Character Replacement0.461中等
4#239Sliding Window Maximum0.451困难
5#480Sliding Window Median0.338困难
6#567Permutation in String0.346中等
7#159Longest Substring with At Most Two Distinct Characters0.51中等
8#727Minimum Window Subsequence0.398困难
9#340Longest Substring with At Most K Distinct Characters0.464困难

递归(Recursion)

排序题号题目通过率难度
1#698Partition to K Equal Sum Subsets0.41中等
2#687Longest Univalue Path0.394简单
3#726Number of Atoms0.437困难
4#248Strobogrammatic Number III0.413困难
5#247Strobogrammatic Number II0.478中等
6#544Output Contest Matches0.665中等
7#625Minimum Factorization0.323中等

字典树(Trie)

排序题号题目通过率难度
1#421Maximum XOR of Two Numbers in an Array0.591中等
2#208Implement Trie (Prefix Tree)0.656中等
3#336Palindrome Pairs0.331困难
4#677Map Sum Pairs0.608中等
5#212Word Search II0.397困难
6#720Longest Word in Dictionary0.461简单
7#211Add and Search Word - Data structure design0.434中等
8#648Replace Words0.536中等
9#676Implement Magic Dictionary0.565中等
10#692Top K Frequent Words0.497中等

线段树(Segment Tree)

排序题号题目通过率难度
1#218The Skyline Problem0.414困难
2#315Count of Smaller Numbers After Self0.372困难
3#327Count of Range Sum0.329困难
4#493Reverse Pairs0.235困难
5#732My Calendar III0.572困难
6#307Range Sum Query - Mutable0.543中等
7#699Falling Squares0.399困难
8#715Range Module0.331困难
9#308Range Sum Query 2D - Mutable0.555困难

Ordered Map(Ordered Map)

这个不懂怎么翻译,似乎就是带排序的map,类似于C++的map。

排序题号题目通过率难度
1#352Data Stream as Disjoint Intervals0.526困难
2#732My Calendar III0.572困难
3#220Contains Duplicate III0.259中等
4#731My Calendar II0.449中等
5#699Falling Squares0.399困难
6#715Range Module0.331困难
7#683K Empty Slots0.368困难

队列(Queue)

排序题号题目通过率难度
1#621Task Scheduler0.481中等
2#363Max Sum of Rectangle No Larger Than K0.348困难
3#346Moving Average from Data Stream0.688简单
4#353Design Snake Game0.391中等
5#582Kill Process0.346中等

几何(Geometry)

排序题号题目通过率难度
1#587Erect the Fence0.302困难

极小化极大算法(Minimax)

排序题号题目通过率难度
1#292Nim Game0.696简单
2#375Guess Number Higher or Lower II0.372中等
3#464Can I Win0.333中等
4#486Predict the Winner0.508中等
5#294Flip Game II0.569中等

二叉索引树(Binary Indexed Tree)

排序题号题目通过率难度
1#218The Skyline Problem0.414困难
2#315Count of Smaller Numbers After Self0.372困难
3#327Count of Range Sum0.329困难
4#493Reverse Pairs0.235困难
5#307Range Sum Query - Mutable0.543中等
6#308Range Sum Query 2D - Mutable0.555困难

扫描线算法(Line Sweep)

排序题号题目通过率难度
1#218The Skyline Problem0.414困难
2#391Perfect Rectangle0.254困难

拓扑排序算法(Topological Sort)

排序题号题目通过率难度
1#207Course Schedule0.496中等
2#329Longest Increasing Path in a Matrix0.401困难
3#210Course Schedule II0.465中等
4#269Alien Dictionary0.381困难
5#444Sequence Reconstruction0.23中等
6#1203Sort Items by Groups Respecting Dependencies0.369困难

脑筋急转弯(Brainteaser)

排序题号题目通过率难度
1#292Nim Game0.696简单
2#319Bulb Switcher0.452中等

记忆化(Memoization)

排序题号题目通过率难度
1#329Longest Increasing Path in a Matrix0.401困难

蓄水池抽样(Reservoir Sampling)

排序题号题目通过率难度
1#382Linked List Random Node0.556中等
2#398Random Pick Index0.599中等

相关/参考链接

leetcode-cn
leetcode

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐