We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3b4bfed commit 8a2421dCopy full SHA for 8a2421d
scripts/algorithms/L/Longest Arithmetic Subsequence/Longest Arithmetic Subsequence.js
@@ -1,3 +1,4 @@
1
+// Runtime: 1333 ms (Top 78.26%) | Memory: 101.5 MB (Top 15.22%)
2
var longestArithSeqLength = function(nums) {
3
if (nums === null || nums.length === 0) {
4
return 0;
@@ -15,6 +16,6 @@ var longestArithSeqLength = function(nums) {
15
16
}
17
18
return maxLen;
- // T.C: O(N^2)
19
+ // T.C: O(N^2)
20
// S.C: O(N^2)
-};
21
+};
0 commit comments