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

Commit5563ec5

Browse files
committed
276 (1) 2nd solution
1 parent79e3890 commit5563ec5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

‎src/_276_PaintFence/Solution2.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,7 @@ public int numWays(int n, int k) {
3232
returnk;
3333
// same[i] means the ith post has the same color with the (i-1)th post.
3434
int[]same =newint[n];
35-
// diff[i] means the ith post has a different color with the (i-1)th
36-
// post.
35+
// diff[i] means the ith post has a different color with the (i-1)th post.
3736
int[]diff =newint[n];
3837
same[0] =same[1] =k;
3938
diff[0] =k;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp