西门摸鱼

Month: 2 月 2023

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


LeetCode 71 简化路径

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

给你一个字符串 path ,表示指向某一文件或目录的 Unix 风格 绝对路径 (以 ‘/&#82 […]

Continue reading


LeetCode 70 爬楼梯

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

假设你正在爬楼梯。需要 n 阶你才能到达楼顶。 每次你可以爬 1 或 2 个台阶。你有多少种不同的方法可以爬到 […]

Continue reading


LeetCode 69 x 的平方根

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

给你一个非负整数 x ,计算并返回 x 的 算术平方根 。 由于返回类型是整数,结果只保留 整数部分 ,小数部 […]

Continue reading


LeetCode 68 文本左右对齐

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

给定一个单词数组 words 和一个长度 maxWidth ,重新排版单词,使其成为每行恰好有 maxWidt […]

Continue reading


Posts navigation

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