Skip to content

Commit

Permalink
Improved task 2915
Browse files Browse the repository at this point in the history
  • Loading branch information
javadev authored Dec 28, 2023
1 parent c3c8966 commit bdeec5e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package g2901_3000.s2915_length_of_the_longest_subsequence_that_sums_to_target;

import java.util.List;

// #Medium #Array #Dynamic_Programming #2023_12_28_Time_23_ms_(91.30%)_Space_44.5_MB_(66.47%)

import java.util.List;

public class Solution {
public int lengthOfLongestSubsequence(List<Integer> nums, int target) {
int[] dp = new int[target + 1];
Expand Down

0 comments on commit bdeec5e

Please sign in to comment.