Skip to content

Commit ca21eab

Browse files
kkty39labuladong
authored andcommitted
fix typo in comment
1 parent 11dc74f commit ca21eab

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

多语言解法代码/solution_code.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -26803,7 +26803,7 @@ public:
2680326803
return res;
2680426804
}
2680526805

26806-
// 可用的左括号数量为 left 个,可用的右括号数量为 rgiht
26806+
// 可用的左括号数量为 left 个,可用的右括号数量为 right
2680726807
void backtrack(int left, int right,
2680826808
string& track, vector<string>& res) {
2680926809
// 若左括号剩下的多,说明不合法
@@ -26844,7 +26844,7 @@ func generateParenthesis(n int) []string {
2684426844
return res
2684526845
}
2684626846

26847-
// 可用的左括号数量为 left 个,可用的右括号数量为 rgiht
26847+
// 可用的左括号数量为 left 个,可用的右括号数量为 right
2684826848
func backtrack(left int, right int, track *string, res *[]string) {
2684926849
// 若左括号剩下的多,说明不合法
2685026850
if right < left {
@@ -26886,7 +26886,7 @@ class Solution {
2688626886
return res;
2688726887
}
2688826888

26889-
// 可用的左括号数量为 left 个,可用的右括号数量为 rgiht
26889+
// 可用的左括号数量为 left 个,可用的右括号数量为 right
2689026890
void backtrack(int left, int right,
2689126891
StringBuilder track, List<String> res) {
2689226892
// 若左括号剩下的多,说明不合法
@@ -26925,7 +26925,7 @@ var generateParenthesis = function(n) {
2692526925
return res;
2692626926
};
2692726927

26928-
// 可用的左括号数量为 left 个,可用的右括号数量为 rgiht
26928+
// 可用的左括号数量为 left 个,可用的右括号数量为 right
2692926929
function backtrack(left, right, track, res) {
2693026930
// 若左括号剩下的多,说明不合法
2693126931
if (right < left) return;
@@ -26963,7 +26963,7 @@ class Solution:
2696326963
self.backtrack(n, n, track, res)
2696426964
return res
2696526965

26966-
# 可用的左括号数量为 left 个,可用的右括号数量为 rgiht
26966+
# 可用的左括号数量为 left 个,可用的右括号数量为 right
2696726967
def backtrack(self, left, right, track, res):
2696826968
# 若左括号剩下的多,说明不合法
2696926969
if right < left:
@@ -53157,7 +53157,7 @@ func deleteDuplicates(head *ListNode) *ListNode {
5315753157
```java
5315853158
// by labuladong (java)
5315953159
class Solution {
53160-
public deleteDuplicates(ListNode head) {
53160+
public ListNode deleteDuplicates(ListNode head) {
5316153161
if (head == null) return null;
5316253162
ListNode slow = head, fast = head;
5316353163
while (fast != null) {

0 commit comments

Comments
 (0)