Skip to content

Commit 3be82b8

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

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
@@ -17,7 +17,6 @@ private LongestArithmeticSubsequence() {
1717
* @return the length of the longest arithmetic subsequence
1818
*/
1919
public static int getLongestArithmeticSubsequenceLength(int[] nums) {
20-
// Throws an exception if nums is null.
2120
if (nums == null) {
2221
throw new IllegalArgumentException("Input array cannot be null");
2322
}

0 commit comments

Comments
 (0)