【leetcode】高频题目整理

    科技2022-07-12  130

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

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

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

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


    广度优先遍历篇-34题(Breadth-first Search, 34 problems)

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

    排序题号题目通过率难度1#407Trapping Rain Water II0.36困难2#107Binary Tree Level Order Traversal II0.647简单3#101Symmetric Tree0.506简单4#279Perfect Squares0.551中等5#54201 Matrix0.381中等6#199Binary Tree Right Side View0.639中等7#200Number of Islands0.478中等8#301Remove Invalid Parentheses0.452困难9#102Binary Tree Level Order Traversal0.613中等10#690Employee Importance0.575简单11#207Course Schedule0.496中等12#133Clone Graph0.525中等13#1036Escape a Large Maze0.275困难14#787Cheapest Flights Within K Stops0.35中等15#111Minimum Depth of Binary Tree0.418简单16#130Surrounded Regions0.398中等17#103Binary Tree Zigzag Level Order Traversal0.54中等18#515Find Largest Value in Each Tree Row0.585中等19#513Find Bottom Left Tree Value0.688中等20#127Word Ladder0.408中等21#529Minesweeper0.594中等22#417Pacific Atlantic Water Flow0.408中等23#675Cut Off Trees for Golf Event0.346困难24#310Minimum Height Trees0.33中等25#126Word Ladder II0.318困难26#210Course Schedule II0.465中等27#317Shortest Distance from All Buildings0.437困难28#505The Maze II0.439中等29#286Walls and Gates0.436中等30#490The Maze0.442中等31#1368Minimum Cost to Make at Least One Valid Path in a Grid0.471困难32#323Number of Connected Components in an Undirected Graph0.553中等33#499The Maze III0.303困难34#261Graph Valid Tree0.449中等

    相关/参考链接

    leetcode-cn leetcode

    Processed: 0.009, SQL: 8