@@ -32,7 +32,7 @@ discard block |
||
| 32 | 32 | } |
| 33 | 33 | [$m, $n] = [count($matrix), count($matrix[0])]; |
| 34 | 34 | [$low, $high] = [$matrix[0][0], $matrix[$m - 1][$n - 1]]; |
| 35 | - $helper = static function (array $matrix, int $target) { |
|
| 35 | + $helper = static function(array $matrix, int $target) { |
|
| 36 | 36 | $n = count($matrix); |
| 37 | 37 | [$cnt, $i, $j] = [0, $n - 1, 0]; |
| 38 | 38 | while ($i >= 0 && $j < $n) { |
@@ -47,7 +47,7 @@ discard block |
||
| 47 | 47 | }; |
| 48 | 48 | |
| 49 | 49 | while ($low < $high) { |
| 50 | - $mid = (int)(($high - $low) / 2) + $low; |
|
| 50 | + $mid = (int) (($high - $low) / 2) + $low; |
|
| 51 | 51 | $cnt = $helper($matrix, $mid); |
| 52 | 52 | if ($cnt < $k) { |
| 53 | 53 | $low = $mid + 1; |