Skip to content

Commit 970008f

Browse files
committed
removed main method from the file
1 parent 45cedb7 commit 970008f

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

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

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -42,17 +42,4 @@ public static int getLongestArithmeticSubsequenceLength(int[] nums) {
4242

4343
return maxLength;
4444
}
45-
46-
public static void main(String[] args) {
47-
int[] nums = {3, 6, 9, 12, 15};
48-
int length = getLongestArithmeticSubsequenceLength(nums);
49-
50-
// Print the result
51-
System.out.println("Array: ");
52-
for (int num : nums) {
53-
System.out.print(num + " ");
54-
}
55-
System.out.println();
56-
System.out.println("Length of the Longest Arithmetic Subsequence: " + length);
57-
}
5845
}

0 commit comments

Comments
 (0)