西门摸鱼

Month: 8 月 2022

LeetCode 36 有效的数独

2022年8月26日 feelshu 1 Comment 算法

题目: 请你判断一个 9 x 9 的数独是否有效。只需要 根据以下规则 ,验证已经填入的数字是否有效即可。 数 […]

Continue reading


LeetCode 35 搜索插入位置

2022年8月26日2022年8月26日 feelshu Leave a comment 算法

题目: 给定一个排序数组和一个目标值,在数组中找到目标值,并返回其索引。如果目标值不存在于数组中,返回它将会被 […]

Continue reading


LeetCode 34 在排序数组中查找元素的第一个和最后一个位置

2022年8月26日2022年8月26日 feelshu Leave a comment 算法

题目: 给你一个按照非递减顺序排列的整数数组 nums,和一个目标值 target。请你找出给定目标值在数组中 […]

Continue reading


LeetCode 33 搜索旋转排序数组

2022年8月26日 feelshu Leave a comment 算法

题目: 整数数组 nums 按升序排列,数组中的值 互不相同 。 在传递给函数之前,nums 在预先未知的某个 […]

Continue reading


LeetCode 32 最长有效括号

2022年8月26日2022年8月26日 feelshu Leave a comment 算法

题目: 给你一个只包含 ‘(‘ 和 ‘)’ 的字符串,找出最长 […]

Continue reading


LeetCode 31 下一个排列

2022年8月26日2022年8月26日 feelshu Leave a comment 算法

题目: 整数数组的一个 排列  就是将其所有成员以序列或线性顺序排列。 例如,arr = [1,2, […]

Continue reading


LeetCode 30 串联所有单词的子串

2022年8月26日 feelshu Leave a comment 算法

题目: 给定一个字符串 s 和一些 长度相同 的单词 words 。找出 s 中恰好可以由 words 中所有 […]

Continue reading


LeetCode 29 两数相除

2022年8月26日 feelshu Leave a comment 算法

题目: 给定两个整数,被除数 dividend 和除数 divisor。将两数相除,要求不使用乘法、除法和 m […]

Continue reading


LeetCode 28 实现strStr()

2022年8月26日 feelshu Leave a comment 算法

题目: 实现 strStr() 函数。 给你两个字符串 haystack 和 needle ,请你在 hays […]

Continue reading


LeetCode 27 移除元素

2022年8月26日 feelshu Leave a comment 算法

题目: 给你一个数组 nums 和一个值 val,你需要 原地 移除所有数值等于 val 的元素,并返回移除后 […]

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