首页
沸点
课程
数据标注
HOT
AI Coding
更多
直播
活动
APP
插件
直播
活动
APP
插件
搜索历史
清空
创作者中心
写文章
发沸点
写笔记
写代码
草稿箱
创作灵感
查看更多
登录
注册
力扣热题 100
pursuit_c
创建于2024-11-18
订阅专栏
leetcode.cn 中区热题 100
暂无订阅
共100篇文章
创建于2024-11-18
订阅专栏
默认顺序
默认顺序
最早发布
最新发布
力扣 48. 旋转图像
🔗 https://leetcode.cn/problems/rotate-image 题目 给一个 n * n 的数组,返回顺时针旋转后的矩阵,要求 in-place,不能使用额外矩阵 思路 明确几
力扣 54. 螺旋矩阵
🔗 https://leetcode.cn/problems/spiral-matrix 题目 给一个矩阵,按照顺时针螺旋式顺序进行遍历 思路 模拟 下标先碰到某 col 变方向, 再碰到某 row
力扣 73. 矩阵置零
🔗 https://leetcode.cn/problems/set-matrix-zeroes 题目 给一个 n * m 的二维数组,如果有一个 0 元素,则把对应的行列都置为零 要求 in-pla
力扣 41. 缺失的第一个正数
🔗 https://leetcode.cn/problems/first-missing-positive 题目 给定一个数组,有正数有负数,未排序,返回没有出现的最小的正数 要求时间复杂度o(n),
力扣 238. 除自身以外数组的乘积
🔗 https://leetcode.cn/problems/product-of-array-except-self 题目 给定一个数组,返回除了当前元素,其余所有元素的乘积 不能用除法,所有数字的
力扣 189. 轮转数组
🔗 https://leetcode.cn/problems/rotate-array 题目 给一个数组,将其中的元素整体右移 K 位返回,尾部元素右移一位会到头部 思路 模拟。这题目咋能算中等难度呢
力扣 56. 合并区间
🔗 https://leetcode.cn/problems/merge-intervals 题目 给出若干区间的起始位置和结束位置 start_i, end_i 对这些重叠的区间进行合并,返回不重叠
力扣 53. 最大子数组和
🔗 https://leetcode.cn/problems/maximum-subarray 题目 给定一个数组,有正数,有复数,返回子序列之和的最大值 思路 这个题目《编程珠玑》讲过,思路从普速的
力扣 76. 最小覆盖子串
🔗 https://leetcode.cn/problems/minimum-window-substring 题目 给定字符串 s 和 t,返回最短的 s 的子串,包含了所有 t 的字符,不存在则返
力扣 239. 滑动窗口最大值
🔗 https://leetcode.cn/problems/sliding-window-maximum 题目 给定一个数组,给定数字 k,滑动窗口的大小为 k,从数组的头往后移动 返回每个窗口内的
力扣 560. 和为 K 的子数组
🔗 https://leetcode.cn/problems/subarray-sum-equals-k 题目 给一个由 int 组成的数组,给定数字 k 返回子数组求和等于 k 的个数 思路 统计并
力扣 438. 找到字符串中所有字母异位词
🔗 https://leetcode.cn/problems/find-all-anagrams-in-a-string 题目 给出两个字符串 s 和 p,找到 s 的子串是 p 的异位词,返回这些子
力扣 3. 无重复字符的最长子串
🔗 https://leetcode.cn/problems/longest-substring-without-repeating-characters 题目 给一个字符串,返回无重复字符的最长子串
力扣 42. 接雨水
🔗 https://leetcode.cn/problems/trapping-rain-water 题目 给出一个数组表示宽度为 1, 高度为 num[i] 的柱子,求下雨后,这些柱子能接住多少雨水
力扣 15. 三数之和
🔗 https://leetcode.cn/problems/3sum 题目 给出一个数组,返回数组中的三个不同下标的 item 之和为 0 的所有元素组合,即三元组为 {nums[i], nums[
力扣 11. 盛最多水的容器
🔗 https://leetcode.cn/problems/container-with-most-water 题目 给一个数组,表示在位置 i 上,边界的高度为 height[i],求边界和 x
力扣 283. 移动零
🔗 https://leetcode.cn/problems/move-zeroes 题目 给定数组,把其中的 0 元素挪到末尾,其余数组的顺序保持相对位置不变 思路 two pointer 覆盖写
力扣 128. 最长连续序列
🔗 https://leetcode.cn/problems/longest-consecutive-sequence 题目 给定无序数组,返回右数组元素组成的最长连续序列的长度 思路 数组排序,判断
力扣 49. 字母异位词分组
🔗 https://leetcode.cn/problems/group-anagrams 题目 给一个字符串数组,将相同的字母组合(字母异位词)聚合在一起返回 思路 对字符串进行排序,相同的字母组合
力扣 1. 两数之和
🔗 https://leetcode.cn/problems/two-sum 题目 给定数组 nums,给定目标值 target,返回满足 nums[i] + nums[j] = target 的 i