Skip to content

Commit 434692c

Browse files
Update algorithms/heap/kclosestelements/README.md
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
1 parent dce0b1c commit 434692c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

algorithms/heap/kclosestelements/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Output
1515
[-1, 0, 1]
1616
1717
Explanation
18-
Explanation: -1 is 2 away from 1, 0 is 1 away from 1, and 1 is 0 away from 1. All other elements are more than 2 away.
18+
-1 is 2 away from 1, 0 is 1 away from 1, and 1 is 0 away from 1. All other elements are more than 2 away.
1919
Since we need to return the elements in ascending order, the answer is [-1, 0, 1]
2020
```
2121

0 commit comments

Comments
 (0)