commit
7d70f5155f
|
|
@ -130,7 +130,7 @@ public:
|
|||
class Solution {
|
||||
public int lengthOfLIS(int[] nums) {
|
||||
int[] dp = new int[nums.length];
|
||||
int res = 0;
|
||||
int res = 1;
|
||||
Arrays.fill(dp, 1);
|
||||
for (int i = 1; i < dp.length; i++) {
|
||||
for (int j = 0; j < i; j++) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue