File tree Expand file tree Collapse file tree 3 files changed +2
-3
lines changed Expand file tree Collapse file tree 3 files changed +2
-3
lines changed Original file line number Diff line number Diff line change 55
55
- [ 41.1 数据流中的中位数] ( 41.1%20数据流中的中位数.md )
56
56
- [ 41.2 字符流中第一个不重复的字符] ( 41.2%20字符流中第一个不重复的字符.md )
57
57
- [ 42. 连续子数组的最大和] ( 42.%20连续子数组的最大和.md )
58
- - [ 43. 从 1 到 n 整数中 1 出现的次数] ( 43.%20从%201%20到%20n%20整数中%201%20出现的次数 )
58
+ - [ 43. 从 1 到 n 整数中 1 出现的次数] ( 43.%20从%201%20到%20n%20整数中%201%20出现的次数.md )
59
59
- [ 44. 数字序列中的某一位数字] ( 44.%20数字序列中的某一位数字.md )
60
60
- [ 45. 把数组排成最小的数] ( 45.%20把数组排成最小的数.md )
61
61
- [ 46. 把数字翻译成字符串] ( 46.%20把数字翻译成字符串.md )
Original file line number Diff line number Diff line change @@ -61,7 +61,6 @@ public RandomListNode Clone(RandomListNode pHead) {
61
61
RandomListNode next = cur. next;
62
62
cur. next = next. next;
63
63
cur = next;
64
- next. next = cur. next;
65
64
}
66
65
return pCloneHead;
67
66
}
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ public int getMost(int[][] values) {
28
28
for (int [] value : values) {
29
29
dp[0 ] += value[0 ];
30
30
for (int i = 1 ; i < n; i++ )
31
- dp[i] = Math . max(dp[i] + value[i] , dp[i - 1 ]) + value[i];
31
+ dp[i] = Math . max(dp[i], dp[i - 1 ]) + value[i];
32
32
}
33
33
return dp[n - 1 ];
34
34
}
You can’t perform that action at this time.
0 commit comments