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

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

Leetcode 高频整理确实是很有帮助的,以下是一些常见的 Leetcode 高频整理: 1. 数组和字符串问: - 两数之和 (Two Sum) - 三数之和 (Three Sum) - 最长回文子串 (Longest Palindromic Substring) - 盛最多水的容器 (Container With Most Water) - 下一个排列 (Next Permutation) 2. 链表问: - 反转链表 (Reverse Linked List) - 删除链表中的倒数第N个节点 (Remove Nth Node From End of List) - 合并两个有序链表 (Merge Two Sorted Lists) - 链表中环的检测 (Linked List Cycle) - 环形链表的起始点 (Linked List Cycle II) 3. 树和图问: - 二叉树的遍历 (Binary Tree Traversal) - 二叉树的最大深度 (Maximum Depth of Binary Tree) - 二叉树的最小深度 (Minimum Depth of Binary Tree) - 图的深度优先搜索 (Depth First Search) - 图的广度优先搜索 (Breadth First Search) 4. 动态规划问: - 爬楼梯 (Climbing Stairs) - 最大子序和 (Maximum Subarray) - 打家劫舍 (House Robber) - 不同路径 (Unique Paths) - 最长递增子序列 (Longest Increasing Subsequence) 5. 排序和搜索问: - 快速排序 (Quick Sort) - 归并排序 (Merge Sort) - 二分查找 (Binary Search) - 搜索旋转排序数组 (Search in Rotated Sorted Array) - 寻找峰值 (Find Peak Element) 这只是一些常见的 Leetcode 高频整理,还有很多其他题目也值得关注。通过刷整理高频题目,可以提高对算法和数据结构的理解和应用能力。希望对你有所帮助!
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值