Skip to content

Commit 7cb9fd9

Browse files
tejaswi0910vil02
andauthored
Update src/main/java/com/thealgorithms/dynamicprogramming/LongestArithmeticSubsequence.java
Co-authored-by: Piotr Idzik <[email protected]>
1 parent 6244682 commit 7cb9fd9

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/main/java/com/thealgorithms/dynamicprogramming/LongestArithmeticSubsequence.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ public static int getLongestArithmeticSubsequenceLength(int[] nums) {
2222
throw new IllegalArgumentException("Input array cannot be null");
2323
}
2424

25-
// If the array is empty or has only one element, return its length.
2625
if (nums.length == 0) {
2726
return 0;
2827
}

0 commit comments

Comments
 (0)