Skip to content

Commit 26cd6a6

Browse files
committed
Runtime: 117 ms (Top 17.41%) | Memory: 42.3 MB (Top 65.96%)
1 parent cf9e865 commit 26cd6a6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/algorithms/C/Can Make Arithmetic Progression From Sequence/Can Make Arithmetic Progression From Sequence.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Runtime: 117 ms (Top 17.41%) | Memory: 42.3 MB (Top 65.96%)
12
var canMakeArithmeticProgression = function(arr) {
23
arr.sort(function(a,b){return a-b});
34
var dif = arr[1] - arr[0];
@@ -7,4 +8,4 @@ var canMakeArithmeticProgression = function(arr) {
78
}
89
}
910
return true;
10-
};
11+
};

0 commit comments

Comments
 (0)