We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3c7e464 commit ee781a8Copy full SHA for ee781a8
1564-put-boxes-into-the-warehouse-i.js
@@ -11,6 +11,7 @@ const maxBoxesInWarehouse = function(boxes, warehouse) {
11
if(boxes[m - i - 1] <= warehouse[j]) {
12
j++
13
}
14
+ if(j === n) return n
15
16
return j
17
};
0 commit comments