Skip to content

Commit f8d7187

Browse files
authored
Update Solution.js
1 parent ff5c660 commit f8d7187

File tree

1 file changed

+1
-1
lines changed
  • solution/0700-0799/0719.Find K-th Smallest Pair Distance

1 file changed

+1
-1
lines changed

solution/0700-0799/0719.Find K-th Smallest Pair Distance/Solution.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ function smallestDistancePair(nums, k) {
1010
right = nums[n - 1] - nums[0];
1111

1212
while (left < right) {
13-
let mid = Math.floor((left + right) / 2);
13+
const mid = (left + right) >> 1;
1414
let count = 0,
1515
i = 0;
1616

0 commit comments

Comments
 (0)