Skip to content

Commit 4d9c34f

Browse files
committed
Runtime: 690 ms (Top 5.03%) | Memory: 64.7 MB (Top 5.59%)
1 parent 7ce4f26 commit 4d9c34f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

scripts/algorithms/I/Increasing Triplet Subsequence/Increasing Triplet Subsequence.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Runtime: 690 ms (Top 5.03%) | Memory: 64.7 MB (Top 5.59%)
12
var increasingTriplet = function(nums) {
23
const length = nums.length, arr = [];
34
let tripletFound = false, arrLength, added = false, found = false;
@@ -26,7 +27,7 @@ var increasingTriplet = function(nums) {
2627
if(tripletFound) break;
2728
if(!added && !found) {
2829
arr.push([nums[index],1]);
29-
}
30+
}
3031
}
3132
return tripletFound;
32-
};
33+
};

0 commit comments

Comments
 (0)