Skip to content

Commit 6a17b17

Browse files
committed
Runtime: 92 ms (Top 39.29%) | Memory: 41.6 MB (Top 81.43%)
1 parent a32133e commit 6a17b17

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1+
// Runtime: 92 ms (Top 39.29%) | Memory: 41.6 MB (Top 81.43%)
12
var findOcurrences = function(text, first, second) {
23
let result = [];
34
let txt = text.split(' ');
45
for(let i = 0; i<txt.length - 2; i++) {
56
if(txt[i] === first && txt[i+1] === second) result.push(txt[i+2]);
67
}
78
return result;
8-
};
9+
};

0 commit comments

Comments
 (0)