Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit6dd5dcb

Browse files
committed
256 (1) update comments
1 parent5f55edd commit6dd5dcb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

‎src/_256_PaintHouse/Solution.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ public int minCost(int[][] costs) {
3131
if (n ==0) {
3232
return0;
3333
}
34+
// f[i][c] = min cost for paint[i : end] if we paint house i with color c
3435
intf[][] =newint[n +1][costs[0].length];
3536
for (inti =n -1;i >=0;i--) {
3637
for (intc =2;c >=0;c--) {

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp