Skip to content

Commit 50ba272

Browse files
committed
Runtime: 2034 ms (Top 8.12%) | Memory: 50.3 MB (Top 81.93%)
1 parent 4b6921a commit 50ba272

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

scripts/algorithms/G/Gas Station/Gas Station.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Runtime: 2034 ms (Top 8.12%) | Memory: 50.3 MB (Top 81.93%)
12
var canCompleteCircuit = function(gas, cost) {
23
const len = gas.length;
34
// scan forward from the current index
@@ -26,6 +27,6 @@ var canCompleteCircuit = function(gas, cost) {
2627
let index = scan(i);
2728
if (~index) return index; // if it's not -1, return it
2829
}
29-
30+
3031
return -1;
31-
};
32+
};

0 commit comments

Comments
 (0)