西门摸鱼

LeetCode

LeetCode 41 缺失的第一个正数

2022年12月17日2022年12月17日 feelshu Leave a comment 算法

给你一个未排序的整数数组 nums ,请你找出其中没有出现的最小的正整数。 请你实现时间复杂度为 O(n) 并 […]

Continue reading


LeetCode 40 组合总和 II

2022年12月16日 feelshu Leave a comment 算法

给定一个候选人编号的集合 candidates 和一个目标数 target ,找出 candidates 中所 […]

Continue reading


LeetCode 39 组合总和

2022年12月13日 feelshu Leave a comment 算法

题目:给你一个 无重复元素 的整数数组 candidates 和一个目标整数 target ,找出 candi […]

Continue reading


LeetCode 38 外观数列

2022年12月13日2022年12月13日 feelshu Leave a comment 算法

题目: 给定一个正整数 n ,输出外观数列的第 n 项。 「外观数列」是一个整数序列,从数字 1 开始,序列中 […]

Continue reading


LeetCode 37 解数独

2022年12月13日2022年12月13日 feelshu Leave a comment 算法

题目: 编写一个程序,通过填充空格来解决数独问题。 数独的解法需 遵循如下规则: 数字 1-9 在每一行只能出 […]

Continue reading


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


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