西门摸鱼

LeetCode 81 搜索旋转排序数组II

2023年2月14日2023年2月14日 feelshu Leave a comment 算法

已知存在一个按非降序排列的整数数组 nums ,数组中的值不必互不相同。 在传递给函数之前,nums 在预先未 […]

Continue reading


LeetCode 80 删除有序数组中的重复项II

2023年2月13日2023年2月13日 feelshu Leave a comment 算法

给你一个有序数组 nums ,请你 原地 删除重复出现的元素,使得出现次数超过两次的元素只出现两次 ,返回删除 […]

Continue reading


LeetCode 79 单词搜索

2023年2月12日2023年2月12日 feelshu Leave a comment 算法

给定一个 m x n 二维字符网格 board 和一个字符串单词 word 。如果 word 存在于网格中,返 […]

Continue reading


LeetCode 78 子集

2023年2月11日 feelshu Leave a comment 算法

给你一个整数数组 nums ,数组中的元素 互不相同 。返回该数组所有可能的子集(幂集)。 解集 不能 包含重 […]

Continue reading


LeetCode 77 组合

2023年2月10日 feelshu Leave a comment 算法

给定两个整数 n 和 k,返回范围 [1, n] 中所有可能的 k 个数的组合。 你可以按 任何顺序 返回答案 […]

Continue reading


LeetCode 76 最小覆盖子串

2023年2月9日 feelshu Leave a comment 算法

给你一个字符串 s 、一个字符串 t 。返回 s 中涵盖 t 所有字符的最小子串。如果 s 中不存在涵盖 t […]

Continue reading


LeetCode 75 颜色分类

2023年2月8日2023年2月8日 feelshu Leave a comment 算法

给定一个包含红色、白色和蓝色、共 n 个元素的数组 nums ,原地对它们进行排序,使得相同颜色的元素相邻,并 […]

Continue reading


LeetCode 74 搜索二维矩阵

2023年2月7日2023年2月7日 feelshu Leave a comment 算法

编写一个高效的算法来判断 m x n 矩阵中,是否存在一个目标值。该矩阵具有如下特性: 每行中的整数从左到右按 […]

Continue reading


LeetCode 73 矩阵置零

2023年2月6日 feelshu Leave a comment 算法

给定一个 m x n 的矩阵,如果一个元素为 0 ,则将其所在行和列的所有元素都设为 0 。请使用 原地 算法 […]

Continue reading


LeetCode 72 编辑距离

2023年2月5日 feelshu Leave a comment 算法

给你两个单词 word1 和 word2, 请返回将 word1 转换成 word2 所使用的最少操作数 。 […]

Continue reading


Posts navigation

Older posts
Newer posts

近期文章

  • LeetCode 199 二叉树的右视图
  • LeetCode 198 打家劫舍
  • LeetCode 197 上升的温度
  • LeetCode 196 删除重复的电子邮箱
  • LeetCode 195 第十行

近期评论

  1. 111 发表在 LeetCode 36 有效的数独
  2. 一位WordPress评论者 发表在 世界,您好!

归档

  • 2023 年 5 月
  • 2023 年 4 月
  • 2023 年 3 月
  • 2023 年 2 月
  • 2023 年 1 月
  • 2022 年 12 月
  • 2022 年 8 月
  • 2022 年 4 月

分类

  • 未分类
  • 算法
dazzling Theme by Colorlib Powered by WordPress
陕ICP备2021008752号-1