Skip to content

Commit b93f734

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public static int getLongestArithmeticSubsequenceLength(int[] nums) {
2828
HashMap<Integer, Integer>[] dp = new HashMap[nums.length];
2929
int maxLength = 2;
3030

31-
// Initialize dp array
31+
// fill the dp array
3232
for (int i = 0; i < nums.length; i++) {
3333
dp[i] = new HashMap<>();
3434
for (int j = 0; j < i; j++) {

0 commit comments

Comments
 (0)