西门摸鱼

Month: 3 月 2023

LeetCode 135 分发糖果

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

n 个孩子站成一排。给你一个整数数组 ratings 表示每个孩子的评分。 你需要按照以下要求,给这些孩子分发 […]

Continue reading


LeetCode 134 加油站

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

在一条环路上有 n 个加油站,其中第 i 个加油站有汽油 gas[i] 升。 你有一辆油箱容量无限的的汽车,从 […]

Continue reading


LeetCode 133 克隆图

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

给你无向 连通 图中一个节点的引用,请你返回该图的 深拷贝(克隆)。 图中的每个节点都包含它的值 val(in […]

Continue reading


LeetCode 132 分割回文串 II

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

给你一个字符串 s,请你将 s 分割成一些子串,使每个子串都是回文。 返回符合要求的 最少分割次数 。 示例 […]

Continue reading


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


Posts navigation

Older 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