Skip to content

Commit

Permalink
更新力扣链接
Browse files Browse the repository at this point in the history
  • Loading branch information
youngyangyang04 committed Jun 27, 2022
1 parent 812aeed commit 1b16a93
Show file tree
Hide file tree
Showing 167 changed files with 189 additions and 189 deletions.
2 changes: 1 addition & 1 deletion problems/0005.最长回文子串.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

# 5.最长回文子串

[力扣题目链接](https://leetcode-cn.com/problems/longest-palindromic-substring/)
[力扣题目链接](https://leetcode.cn/problems/longest-palindromic-substring/)

给你一个字符串 s,找到 s 中最长的回文子串。

Expand Down
2 changes: 1 addition & 1 deletion problems/0015.三数之和.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
# 第15题. 三数之和

[力扣题目链接](https://leetcode-cn.com/problems/3sum/)
[力扣题目链接](https://leetcode.cn/problems/3sum/)

给你一个包含 n 个整数的数组 nums,判断 nums 中是否存在三个元素 a,b,c ,使得 a + b + c = 0 ?请你找出所有满足条件且不重复的三元组。

Expand Down
2 changes: 1 addition & 1 deletion problems/0017.电话号码的字母组合.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

# 17.电话号码的字母组合

[力扣题目链接](https://leetcode-cn.com/problems/letter-combinations-of-a-phone-number/)
[力扣题目链接](https://leetcode.cn/problems/letter-combinations-of-a-phone-number/)

给定一个仅包含数字 2-9 的字符串,返回所有它能表示的字母组合。

Expand Down
2 changes: 1 addition & 1 deletion problems/0018.四数之和.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
# 第18题. 四数之和

[力扣题目链接](https://leetcode-cn.com/problems/4sum/)
[力扣题目链接](https://leetcode.cn/problems/4sum/)

题意:给定一个包含 n 个整数的数组 nums 和一个目标值 target,判断 nums 中是否存在四个元素 a,b,c 和 d ,使得 a + b + c + d 的值与 target 相等?找出所有满足条件且不重复的四元组。

Expand Down
2 changes: 1 addition & 1 deletion problems/0019.删除链表的倒数第N个节点.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

## 19.删除链表的倒数第N个节点

[力扣题目链接](https://leetcode-cn.com/problems/remove-nth-node-from-end-of-list/)
[力扣题目链接](https://leetcode.cn/problems/remove-nth-node-from-end-of-list/)

给你一个链表,删除链表的倒数第 n 个结点,并且返回链表的头结点。

Expand Down
2 changes: 1 addition & 1 deletion problems/0020.有效的括号.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
# 20. 有效的括号

[力扣题目链接](https://leetcode-cn.com/problems/valid-parentheses/)
[力扣题目链接](https://leetcode.cn/problems/valid-parentheses/)

给定一个只包括 '(',')','{','}','[',']' 的字符串,判断字符串是否有效。

Expand Down
2 changes: 1 addition & 1 deletion problems/0024.两两交换链表中的节点.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

## 24. 两两交换链表中的节点

[力扣题目链接](https://leetcode-cn.com/problems/swap-nodes-in-pairs/)
[力扣题目链接](https://leetcode.cn/problems/swap-nodes-in-pairs/)

给定一个链表,两两交换其中相邻的节点,并返回交换后的链表。

Expand Down
2 changes: 1 addition & 1 deletion problems/0027.移除元素.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

## 27. 移除元素

[力扣题目链接](https://leetcode-cn.com/problems/remove-element/)
[力扣题目链接](https://leetcode.cn/problems/remove-element/)

给你一个数组 nums 和一个值 val,你需要 原地 移除所有数值等于 val 的元素,并返回移除后数组的新长度。

Expand Down
2 changes: 1 addition & 1 deletion problems/0028.实现strStr.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# 28. 实现 strStr()

[力扣题目链接](https://leetcode-cn.com/problems/implement-strstr/)
[力扣题目链接](https://leetcode.cn/problems/implement-strstr/)

实现 strStr() 函数。

Expand Down
2 changes: 1 addition & 1 deletion problems/0031.下一个排列.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

# 31.下一个排列

[力扣题目链接](https://leetcode-cn.com/problems/next-permutation/)
[力扣题目链接](https://leetcode.cn/problems/next-permutation/)

实现获取 下一个排列 的函数,算法需要将给定数字序列重新排列成字典序中下一个更大的排列。

Expand Down
2 changes: 1 addition & 1 deletion problems/0035.搜索插入位置.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

# 35.搜索插入位置

[力扣题目链接](https://leetcode-cn.com/problems/search-insert-position/)
[力扣题目链接](https://leetcode.cn/problems/search-insert-position/)

给定一个排序数组和一个目标值,在数组中找到目标值,并返回其索引。如果目标值不存在于数组中,返回它将会被按顺序插入的位置。

Expand Down
2 changes: 1 addition & 1 deletion problems/0037.解数独.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

# 37. 解数独

[力扣题目链接](https://leetcode-cn.com/problems/sudoku-solver/)
[力扣题目链接](https://leetcode.cn/problems/sudoku-solver/)

编写一个程序,通过填充空格来解决数独问题。

Expand Down
2 changes: 1 addition & 1 deletion problems/0039.组合总和.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

# 39. 组合总和

[力扣题目链接](https://leetcode-cn.com/problems/combination-sum/)
[力扣题目链接](https://leetcode.cn/problems/combination-sum/)

给定一个无重复元素的数组 candidates 和一个目标数 target ,找出 candidates 中所有可以使数字和为 target 的组合。

Expand Down
2 changes: 1 addition & 1 deletion problems/0040.组合总和II.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# 40.组合总和II

[力扣题目链接](https://leetcode-cn.com/problems/combination-sum-ii/)
[力扣题目链接](https://leetcode.cn/problems/combination-sum-ii/)

给定一个数组 candidates 和一个目标数 target ,找出 candidates 中所有可以使数字和为 target 的组合。

Expand Down
2 changes: 1 addition & 1 deletion problems/0042.接雨水.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# 42. 接雨水

[力扣题目链接](https://leetcode-cn.com/problems/trapping-rain-water/)
[力扣题目链接](https://leetcode.cn/problems/trapping-rain-water/)

给定 n 个非负整数表示每个宽度为 1 的柱子的高度图,计算按此排列的柱子,下雨之后能接多少雨水。

Expand Down
2 changes: 1 addition & 1 deletion problems/0045.跳跃游戏II.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# 45.跳跃游戏II

[力扣题目链接](https://leetcode-cn.com/problems/jump-game-ii/)
[力扣题目链接](https://leetcode.cn/problems/jump-game-ii/)

给定一个非负整数数组,你最初位于数组的第一个位置。

Expand Down
2 changes: 1 addition & 1 deletion problems/0046.全排列.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

# 46.全排列

[力扣题目链接](https://leetcode-cn.com/problems/permutations/)
[力扣题目链接](https://leetcode.cn/problems/permutations/)

给定一个 没有重复 数字的序列,返回其所有可能的全排列。

Expand Down
2 changes: 1 addition & 1 deletion problems/0047.全排列II.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

## 47.全排列 II

[力扣题目链接](https://leetcode-cn.com/problems/permutations-ii/)
[力扣题目链接](https://leetcode.cn/problems/permutations-ii/)

给定一个可包含重复数字的序列 nums ,按任意顺序 返回所有不重复的全排列。

Expand Down
2 changes: 1 addition & 1 deletion problems/0051.N皇后.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

# 第51题. N皇后

[力扣题目链接](https://leetcode-cn.com/problems/n-queens/)
[力扣题目链接](https://leetcode.cn/problems/n-queens/)

n 皇后问题 研究的是如何将 n 个皇后放置在 n×n 的棋盘上,并且使皇后彼此之间不能相互攻击。

Expand Down
2 changes: 1 addition & 1 deletion problems/0052.N皇后II.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

# 52. N皇后II

题目链接:https://leetcode-cn.com/problems/n-queens-ii/
题目链接:https://leetcode.cn/problems/n-queens-ii/

n 皇后问题研究的是如何将 n 个皇后放置在 n×n 的棋盘上,并且使皇后彼此之间不能相互攻击。

Expand Down
2 changes: 1 addition & 1 deletion problems/0053.最大子序和.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

# 53. 最大子序和

[力扣题目链接](https://leetcode-cn.com/problems/maximum-subarray/)
[力扣题目链接](https://leetcode.cn/problems/maximum-subarray/)

给定一个整数数组 nums ,找到一个具有最大和的连续子数组(子数组最少包含一个元素),返回其最大和。

Expand Down
2 changes: 1 addition & 1 deletion problems/0053.最大子序和(动态规划).md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

## 53. 最大子序和

[力扣题目链接](https://leetcode-cn.com/problems/maximum-subarray/)
[力扣题目链接](https://leetcode.cn/problems/maximum-subarray/)

给定一个整数数组 nums ,找到一个具有最大和的连续子数组(子数组最少包含一个元素),返回其最大和。

Expand Down
6 changes: 3 additions & 3 deletions problems/0054.螺旋矩阵.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

## 54.螺旋矩阵

[力扣题目链接](https://leetcode-cn.com/problems/spiral-matrix/)
[力扣题目链接](https://leetcode.cn/problems/spiral-matrix/)

给你一个 m 行 n 列的矩阵 matrix ,请按照 顺时针螺旋顺序 ,返回矩阵中的所有元素。

Expand Down Expand Up @@ -128,8 +128,8 @@ public:

## 类似题目

* [59.螺旋矩阵II](https://leetcode-cn.com/problems/spiral-matrix-ii/)
* [剑指Offer 29.顺时针打印矩阵](https://leetcode-cn.com/problems/shun-shi-zhen-da-yin-ju-zhen-lcof/)
* [59.螺旋矩阵II](https://leetcode.cn/problems/spiral-matrix-ii/)
* [剑指Offer 29.顺时针打印矩阵](https://leetcode.cn/problems/shun-shi-zhen-da-yin-ju-zhen-lcof/)

## 其他语言版本
Python:
Expand Down
2 changes: 1 addition & 1 deletion problems/0055.跳跃游戏.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

# 55. 跳跃游戏

[力扣题目链接](https://leetcode-cn.com/problems/jump-game/)
[力扣题目链接](https://leetcode.cn/problems/jump-game/)

给定一个非负整数数组,你最初位于数组的第一个位置。

Expand Down
2 changes: 1 addition & 1 deletion problems/0056.合并区间.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

# 56. 合并区间

[力扣题目链接](https://leetcode-cn.com/problems/merge-intervals/)
[力扣题目链接](https://leetcode.cn/problems/merge-intervals/)

给出一个区间的集合,请合并所有重叠的区间。

Expand Down
2 changes: 1 addition & 1 deletion problems/0062.不同路径.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

# 62.不同路径

[力扣题目链接](https://leetcode-cn.com/problems/unique-paths/)
[力扣题目链接](https://leetcode.cn/problems/unique-paths/)

一个机器人位于一个 m x n 网格的左上角 (起始点在下图中标记为 “Start” )。

Expand Down
2 changes: 1 addition & 1 deletion problems/0063.不同路径II.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

# 63. 不同路径 II

[力扣题目链接](https://leetcode-cn.com/problems/unique-paths-ii/)
[力扣题目链接](https://leetcode.cn/problems/unique-paths-ii/)

一个机器人位于一个 m x n 网格的左上角 (起始点在下图中标记为“Start” )。

Expand Down
2 changes: 1 addition & 1 deletion problems/0070.爬楼梯.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<p align="center"><strong><a href="https://mp.weixin.qq.com/s/tqCxrMEU-ajQumL1i8im9A">参与本项目</a>,贡献其他语言版本的代码,拥抱开源,让更多学习算法的小伙伴们收益!</strong></p>

# 70. 爬楼梯
[力扣题目链接](https://leetcode-cn.com/problems/climbing-stairs/)
[力扣题目链接](https://leetcode.cn/problems/climbing-stairs/)

假设你正在爬楼梯。需要 n 阶你才能到达楼顶。

Expand Down
2 changes: 1 addition & 1 deletion problems/0070.爬楼梯完全背包版本.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

## 70. 爬楼梯

[力扣题目链接](https://leetcode-cn.com/problems/climbing-stairs/)
[力扣题目链接](https://leetcode.cn/problems/climbing-stairs/)

假设你正在爬楼梯。需要 n 阶你才能到达楼顶。

Expand Down
2 changes: 1 addition & 1 deletion problems/0072.编辑距离.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

## 72. 编辑距离

[力扣题目链接](https://leetcode-cn.com/problems/edit-distance/)
[力扣题目链接](https://leetcode.cn/problems/edit-distance/)

给你两个单词 word1 和 word2,请你计算出将 word1 转换成 word2 所使用的最少操作数 。

Expand Down
2 changes: 1 addition & 1 deletion problems/0077.组合.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

# 第77题. 组合

[力扣题目链接](https://leetcode-cn.com/problems/combinations/ )
[力扣题目链接](https://leetcode.cn/problems/combinations/ )

给定两个整数 n 和 k,返回 1 ... n 中所有可能的 k 个数的组合。

Expand Down
2 changes: 1 addition & 1 deletion problems/0077.组合优化.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
文中的回溯法是可以剪枝优化的,本篇我们继续来看一下题目77. 组合。

链接:https://leetcode-cn.com/problems/combinations/
链接:https://leetcode.cn/problems/combinations/

**看本篇之前,需要先看[回溯算法:求组合问题!](https://programmercarl.com/0077.组合.html)**

Expand Down
2 changes: 1 addition & 1 deletion problems/0078.子集.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

# 78.子集

[力扣题目链接](https://leetcode-cn.com/problems/subsets/)
[力扣题目链接](https://leetcode.cn/problems/subsets/)

给定一组不含重复元素的整数数组 nums,返回该数组所有可能的子集(幂集)。

Expand Down
2 changes: 1 addition & 1 deletion problems/0084.柱状图中最大的矩形.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

# 84.柱状图中最大的矩形

[力扣题目链接](https://leetcode-cn.com/problems/largest-rectangle-in-histogram/)
[力扣题目链接](https://leetcode.cn/problems/largest-rectangle-in-histogram/)

给定 n 个非负整数,用来表示柱状图中各个柱子的高度。每个柱子彼此相邻,且宽度为 1 。

Expand Down
2 changes: 1 addition & 1 deletion problems/0090.子集II.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

## 90.子集II

[力扣题目链接](https://leetcode-cn.com/problems/subsets-ii/)
[力扣题目链接](https://leetcode.cn/problems/subsets-ii/)

给定一个可能包含重复元素的整数数组 nums,返回该数组所有可能的子集(幂集)。

Expand Down
2 changes: 1 addition & 1 deletion problems/0093.复原IP地址.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

# 93.复原IP地址

[力扣题目链接](https://leetcode-cn.com/problems/restore-ip-addresses/)
[力扣题目链接](https://leetcode.cn/problems/restore-ip-addresses/)

给定一个只包含数字的字符串,复原它并返回所有可能的 IP 地址格式。

Expand Down
2 changes: 1 addition & 1 deletion problems/0096.不同的二叉搜索树.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

# 96.不同的二叉搜索树

[力扣题目链接](https://leetcode-cn.com/problems/unique-binary-search-trees/)
[力扣题目链接](https://leetcode.cn/problems/unique-binary-search-trees/)

给定一个整数 n,求以 1 ... n 为节点组成的二叉搜索树有多少种?

Expand Down
2 changes: 1 addition & 1 deletion problems/0098.验证二叉搜索树.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

# 98.验证二叉搜索树

[力扣题目链接](https://leetcode-cn.com/problems/validate-binary-search-tree/)
[力扣题目链接](https://leetcode.cn/problems/validate-binary-search-tree/)


给定一个二叉树,判断其是否是一个有效的二叉搜索树。
Expand Down
2 changes: 1 addition & 1 deletion problems/0100.相同的树.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

# 100. 相同的树

[力扣题目链接](https://leetcode-cn.com/problems/same-tree/)
[力扣题目链接](https://leetcode.cn/problems/same-tree/)

给定两个二叉树,编写一个函数来检验它们是否相同。

Expand Down
2 changes: 1 addition & 1 deletion problems/0101.对称二叉树.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

# 101. 对称二叉树

[力扣题目链接](https://leetcode-cn.com/problems/symmetric-tree/)
[力扣题目链接](https://leetcode.cn/problems/symmetric-tree/)

给定一个二叉树,检查它是否是镜像对称的。

Expand Down
Loading

0 comments on commit 1b16a93

Please sign in to comment.