Skip to content

Commit d80c05b

Browse files
committed
Update Contents.swift
1 parent a90b735 commit d80c05b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Medium/15.3Sum.playground/Contents.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class Solution {
3838
if sortedNums[i] > 0 {
3939
break
4040
}
41-
// Remove duplicate element.
41+
// Remove duplicate elements.
4242
if i > 0 && sortedNums[i] == sortedNums[i - 1] {
4343
continue
4444
}
@@ -48,7 +48,7 @@ class Solution {
4848
if sortedNums[i] + sortedNums[left] + sortedNums[right] == 0 {
4949
res.append([sortedNums[i], sortedNums[left], sortedNums[right]])
5050

51-
// Remove duplicate element.
51+
// Remove duplicate elements.
5252
while left < right && sortedNums[right] == sortedNums[right - 1] {
5353
right -= 1
5454
}

0 commit comments

Comments
 (0)