Skip to content

Commit 612b9c0

Browse files
committed
Do find-disappeared retention practice
1 parent ee0a8ae commit 612b9c0

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

patterns/arrays/easy/find-all-numbers-disappeared/find-all-numbers-disappeared.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ Given an array `nums` of n integers where `nums[i]` is in the range `[1, n]`, re
44

55
**Follow up:** Could you do it without extra space and in `O(n)` runtime? You may assume the returned list does not count as extra space.
66

7-
## Example 1:
7+
## Example 1
88

99
```ts
1010
Input: nums = [4,3,2,7,8,2,3,1]
1111
Output: [5,6]
1212
```
1313

14-
## Example 2:
14+
## Example 2
1515

1616
```ts
1717
Input: nums = [1,1]
@@ -27,4 +27,5 @@ Output: [2]
2727
## Retention Tracking
2828

2929
- [x] retained 24.02.25
30-
- [x] retained 16.03.25
30+
- [x] retained 16.03.25
31+
- [x] retained 27.04.25

retention/arraysRetention.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,6 @@ func FindDisappearedNumbers(nums []int) []int {
284284
result = append(result, i+1)
285285
}
286286
}
287-
288287
return result
289288
}
290289

0 commit comments

Comments
 (0)