LeetCode 热题 100 回顾

目录

一、哈希部分

1.两数之和 (简单)

2.字母异位词分组 (中等)

3.最长连续序列 (中等)

二、双指针部分

4.移动零 (简单)

5.盛最多水的容器 (中等)

6. 三数之和 (中等)

7.接雨水 (困难)

三、滑动窗口

8.无重复字符的最长子串 (中等)

9.找到字符串中所有字母异位词 (中等)

四、子串

10.和为 K 的子数组 (中等)

11.滑动窗口最大值 (困难)

12.最小覆盖子串 (困难)

五、普通数组

13.最大子数组和 (中等)

14.合并区间 (中等)

15.轮转数组 (中等)

16.除自身以外数组的乘积 (中等)

17.缺失的第一个正数 (困难)

六、矩阵

18.矩阵置零 (中等)

19.螺旋矩阵(中等)

20.旋转图像(中等)

21.搜索二维矩阵 II(中等)

七、链表

22.相交链表(简单)

23.反转链表(简单)

24.回文链表(简单)

25.环形链表(简单)

26. 环形链表 II(中等)

27.合并两个有序链表(简单)

28.两数相加(中等)

29.删除链表的倒数第 N 个结点(中等)

30.两两交换链表中的节点(中等)

31.K 个一组翻转链表 (困难)

32.随机链表的复制(中等)

33.排序链表(中等)

34.合并 K 个升序链表 (困难)

35.LRU 缓存(中等)

八、二叉树

36.二叉树的中序遍历(简单)

37.二叉树的最大深度(简单)

38.翻转二叉树(简单)

39.对称二叉树(简单)

40.二叉树的直径(简单)

41.二叉树的层序遍历(中等)

42.将有序数组转换为二叉搜索树(简单)

43.验证二叉搜索树(中等)

44.二叉搜索树中第 K 小的元素(中等)

45.二叉树的右视图(中等)

46.二叉树展开为链表(中等)

47.从前序与中序遍历序列构造二叉树(中等)

48.路径总和 III(中等)

49.二叉树的最近公共祖先(中等)

50.二叉树中的最大路径和 (困难)

九、图论

51.岛屿数量(中等)

52.腐烂的橘子(中等)

53.课程表(中等)

54.实现 Trie (前缀树)(中等)

十、回溯

55.全排列(中等)

56.子集(中等)

57.电话号码的字母组合(中等)

58.组合总和(中等)

59.括号生成(中等)

60.单词搜索(中等)

61.分割回文串(中等)

62.N 皇后 (困难)

十一、二分查找

63.搜索插入位置(简单)

64.搜索二维矩阵(中等)

65.在排序数组中查找元素的第一个和最后一个位置(中等)

66.搜索旋转排序数组(中等)

67.寻找旋转排序数组中的最小值(中等)

68.寻找两个正序数组的中位数 (困难)

十二、栈

69.有效的括号(简单)

70.最小栈(中等)

71.字符串解码(中等)

72.每日温度(中等)

73.柱状图中最大的矩形(困难)

十三、堆

74.数组中的第K个最大元素(中等)

75.前 K 个高频元素(中等)

76.数据流的中位数(困难)

十四、贪心算法

77.买卖股票的最佳时机(简单)

78.跳跃游戏(中等)

79.跳跃游戏 II(中等)

80.划分字母区间(中等)

十五、动态规划

81.爬楼梯(简单)

82.杨辉三角(简单)

83.打家劫舍(中等)

84.完全平方数(中等)

85.零钱兑换(中等)

86.单词拆分 (中等)

87.最长递增子序列  (中等)

88.乘积最大子数组 (中等)

89.分割等和子集 (中等)

90.最长有效括号(困难)

十六、多维动态规划

91.不同路径 (中等)

92.最小路径和(中等)

93.最长回文子串(中等)

94.最长公共子序列 (中等)

95.编辑距离(中等)

十七、技巧

96.只出现一次的数字(简单)

97.多数元素(简单)

98.颜色分类(中等)

99.下一个排列(中等)

100.寻找重复数(中等)


干货分享,感谢您的阅读!

一、哈希部分

1.两数之和 (简单)

题目描述

给定一个整数数组 nums 和一个整数目标值 

### LeetCode Top 100 Popular Problems LeetCode provides an extensive collection of algorithmic challenges designed to help developers prepare for technical interviews and enhance their problem-solving skills. The platform categorizes these problems based on popularity, difficulty level, and frequency asked during tech interviews. The following list represents a curated selection of the most frequently practiced 100 problems from LeetCode: #### Array & String Manipulation 1. Two Sum[^2] 2. Add Two Numbers (Linked List)[^2] 3. Longest Substring Without Repeating Characters #### Dynamic Programming 4. Climbing Stairs 5. Coin Change 6. House Robber #### Depth-First Search (DFS) / Breadth-First Search (BFS) 7. Binary Tree Level Order Traversal[^3] 8. Surrounded Regions 9. Number of Islands #### Backtracking 10. Combination Sum 11. Subsets 12. Permutations #### Greedy Algorithms 13. Jump Game 14. Gas Station 15. Task Scheduler #### Sliding Window Technique 16. Minimum Size Subarray Sum 17. Longest Repeating Character Replacement #### Bit Manipulation 18. Single Number[^1] 19. Maximum Product of Word Lengths 20. Reverse Bits This list continues up until reaching approximately 100 items covering various categories including but not limited to Trees, Graphs, Sorting, Searching, Math, Design Patterns, etc.. Each category contains multiple representative questions that cover fundamental concepts as well as advanced techniques required by leading technology companies when conducting software engineering candidate assessments. For those interested in improving logical thinking through gaming activities outside traditional study methods, certain types of video games have been shown beneficial effects similar to engaging directly within competitive coding platforms [^4]. --related questions-- 1. How does participating in online coding competitions benefit personal development? 2. What specific advantages do DFS/BFS algorithms offer compared to other traversal strategies? 3. Can you provide examples illustrating how bit manipulation improves performance efficiency? 4. In what ways might regular participation in programming contests influence job interview success rates? 5. Are there any notable differences between solving problems on paper versus implementing solutions programmatically?
评论 2090
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

张彦峰ZYF

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值