Skip to content

Commit 1f95483

Browse files
author
jinvicky
committed
fix lint
1 parent 2258086 commit 1f95483

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

best-time-to-buy-and-sell-stock/jinvicky.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,4 @@ public int maxProfit(int[] prices) {
2727

2828
return max;
2929
}
30-
}
30+
}

word-break/jinvicky.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ public boolean wordBreak2(String s, List<String> wordDict) {
5757
*/
5858
for (int i = 1; i <= n; i++) {
5959
for (int j = 0; j < i; j++) {
60+
// 예시를 보면 (start, end)에서 start가 증가할 동안 end는 고정됩니다. 따라서 start=j, end=i가 되어야 합니다.
6061
if (dp[j] && wordSet.contains(s.substring(j, i))) {
6162
dp[i] = true;
6263
break;

0 commit comments

Comments
 (0)