We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c3c8966 commit bdeec5eCopy full SHA for bdeec5e
src/main/java/g2901_3000/s2915_length_of_the_longest_subsequence_that_sums_to_target/Solution.java
@@ -1,9 +1,9 @@
1
package g2901_3000.s2915_length_of_the_longest_subsequence_that_sums_to_target;
2
3
-import java.util.List;
4
-
5
// #Medium #Array #Dynamic_Programming #2023_12_28_Time_23_ms_(91.30%)_Space_44.5_MB_(66.47%)
6
+import java.util.List;
+
7
public class Solution {
8
public int lengthOfLongestSubsequence(List<Integer> nums, int target) {
9
int[] dp = new int[target + 1];
0 commit comments