Skip to content

Commit d80e291

Browse files
authored
Update README.md
1 parent bb7e20c commit d80e291

File tree

1 file changed

+2
-1
lines changed
  • solution/0900-0999/0973.K Closest Points to Origin

1 file changed

+2
-1
lines changed

solution/0900-0999/0973.K Closest Points to Origin/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,8 @@ class Solution:
8989
```java
9090
class Solution {
9191
public int[][] kClosest(int[][] points, int k) {
92-
Arrays.sort(points, (p1, p2) -> Math.hypot(p1[0], p1[1]) - Math.hypot(p2[0], p2[1]) > 0 ? 1 : -1);
92+
Arrays.sort(
93+
points, (p1, p2) -> Math.hypot(p1[0], p1[1]) - Math.hypot(p2[0], p2[1]) > 0 ? 1 : -1);
9394
return Arrays.copyOfRange(points, 0, k);
9495
}
9596
}

0 commit comments

Comments
 (0)