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

Commit9a7d29c

Browse files
missing Math.Max on line 4
1 parentf0b3d19 commit9a7d29c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎csharp/0213-house-robber-ii.cs‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
publicclassSolution{
22
publicintRob(int[]nums){
33

4-
returnMath.Max(nums[0],Mat
4+
returnMath.Max(nums[0],Math.Max(
55
getMaxRobAmount(nums,0,nums.Length-1),
6-
getMaxRobAmount(nums,1,nums.Length)
6+
getMaxRobAmount(nums,1,nums.Length))
77
);
88
}
99

@@ -18,4 +18,4 @@ public int getMaxRobAmount(int[] nums, int start, int end) {
1818

1919
returnrob2;
2020
}
21-
}
21+
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp