Skip to content

Commit ee781a8

Browse files
authored
Update 1564-put-boxes-into-the-warehouse-i.js
1 parent 3c7e464 commit ee781a8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

1564-put-boxes-into-the-warehouse-i.js

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ const maxBoxesInWarehouse = function(boxes, warehouse) {
1111
if(boxes[m - i - 1] <= warehouse[j]) {
1212
j++
1313
}
14+
if(j === n) return n
1415
}
1516
return j
1617
};

0 commit comments

Comments
 (0)