西门摸鱼

Month: 3 月 2023

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


LeetCode 121 买卖股票的最佳时机

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

给定一个数组 prices ,它的第 i 个元素 prices[i] 表示一支给定股票第 i 天的价格。 你只 […]

Continue reading


LeetCode 120 三角形最小路径和

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

给定一个三角形 triangle ,找出自顶向下的最小路径和。 每一步只能移动到下一行中相邻的结点上。相邻的结 […]

Continue reading


LeetCode 119 杨辉三角 II

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

给定一个非负索引 rowIndex,返回「杨辉三角」的第 rowIndex 行。 在「杨辉三角」中,每个数是它 […]

Continue reading


LeetCode 118 杨辉三角

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

给定一个非负整数 numRows,生成「杨辉三角」的前 numRows 行。 在「杨辉三角」中,每个数是它左上 […]

Continue reading


LeetCode 117 填充每个节点的下一个右侧节点指针 II

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

给定一个二叉树: 填充它的每个 next 指针,让这个指针指向其下一个右侧节点。如果找不到下一个右侧节点,则将 […]

Continue reading


LeetCode 116 填充每个节点的下一个右侧节点指针

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

给定一个 完美二叉树 ,其所有叶子节点都在同一层,每个父节点都有两个子节点。二叉树定义如下: 填充它的每个 n […]

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