We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7cb9fd9 commit 3be82b8Copy full SHA for 3be82b8
src/main/java/com/thealgorithms/dynamicprogramming/LongestArithmeticSubsequence.java
@@ -17,7 +17,6 @@ private LongestArithmeticSubsequence() {
17
* @return the length of the longest arithmetic subsequence
18
*/
19
public static int getLongestArithmeticSubsequenceLength(int[] nums) {
20
- // Throws an exception if nums is null.
21
if (nums == null) {
22
throw new IllegalArgumentException("Input array cannot be null");
23
}
0 commit comments