Skip to content

Commit da4d089

Browse files
authored
fix: return type $240 (#400)
1 parent 18ab0b1 commit da4d089

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

problems/240.search-a-2-d-matrix-ii.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ JavaScript Code:
6969
* @return {boolean}
7070
*/
7171
var searchMatrix = function(matrix, target) {
72-
if (!matrix || matrix.length === 0) return 0;
72+
if (!matrix || matrix.length === 0) return false;
7373

7474
let colIndex = 0;
7575
let rowIndex = matrix.length - 1;

0 commit comments

Comments
 (0)