西门摸鱼

算法

LeetCode 131 分割回文串

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

给你一个字符串 s,请你将 s 分割成一些子串,使每个子串都是 回文串 。返回 s 所有可能的分割方案。 回文 […]

Continue reading


LeetCode 130 被围绕的区域

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

给你一个 m x n 的矩阵 board ,由若干字符 ‘X’ 和 ‘O& […]

Continue reading


LeetCode 129 求根节点到叶节点数字之和

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

给你一个二叉树的根节点 root ,树中每个节点都存放有一个 0 到 9 之间的数字。每条从根节点到叶节点的路 […]

Continue reading


LeetCode 128 最长连续序列

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

给定一个未排序的整数数组 nums ,找出数字连续的最长序列(不要求序列元素在原数组中连续)的长度。 请你设计 […]

Continue reading


LeetCode 127 单词接龙

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

字典 wordList 中从单词 beginWord 和 endWord 的 转换序列 是一个按下述规格形成的 […]

Continue reading


LeetCode 126 单词接龙 II

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

按字典 wordList 完成从单词 beginWord 到单词 endWord 转化,一个表示此过程的 转换 […]

Continue reading


LeetCode 125 验证回文串

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

如果在将所有大写字符转换为小写字符、并移除所有非字母数字字符之后,短语正着读和反着读都一样。则可以认为该短语是 […]

Continue reading


LeetCode 124 二叉树中的最大路径和

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

路径 被定义为一条从树中任意节点出发,沿父节点-子节点连接,达到任意节点的序列。同一个节点在一条路径序列中 至 […]

Continue reading


LeetCode 123 买卖股票的最佳时机 III

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

给定一个数组,它的第 i 个元素是一支给定的股票在第 i 天的价格。 设计一个算法来计算你所能获取的最大利润。 […]

Continue reading


LeetCode 122 买卖股票的最佳时机 II

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

给你一个整数数组 prices ,其中 prices[i] 表示某支股票第 i 天的价格。 在每一天,你可以决 […]

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