Test Failed
Push — master ( 89f7de...ad59d7 )
by Jinyun
02:35
created
src/leetcode/KthSmallestElementInASortedMatrix.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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;
Please login to merge, or discard this patch.