Skip to content

Commit 9e7461d

Browse files
committed
Runtime: 198 ms (Top 72.22%) | Memory: 54.2 MB (Top 88.89%)
1 parent 38a603a commit 9e7461d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/algorithms/F/Find Latest Group of Size M/Find Latest Group of Size M.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Runtime: 198 ms (Top 72.22%) | Memory: 54.2 MB (Top 88.89%)
12
var findLatestStep = function(arr, m) {
23
if (m === arr.length) return arr.length
34
let bits = new Array(arr.length+1).fill(true), pos, flag, i, j
@@ -9,4 +10,4 @@ var findLatestStep = function(arr, m) {
910
if (flag && !bits[pos+m+1]) return i
1011
}
1112
return -1
12-
};
13+
};

0 commit comments

Comments
 (0)