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

Commit2d9d371

Browse files
refactor 740
1 parent68a0f6b commit2d9d371

File tree

1 file changed

+2
-0
lines changed
  • src/main/java/com/fishercoder/solutions

1 file changed

+2
-0
lines changed

‎src/main/java/com/fishercoder/solutions/_740.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ public static class Solution1 {
99
* use the numbers themselves in the indices of another array
1010
* <p>
1111
* credit: https://leetcode.com/problems/delete-and-earn/discuss/109895/JavaC++-Clean-Code-with-Explanation
12+
* <p>
13+
* In essence, this is the same as House Robber: https://leetcode.com/problems/house-robber/
1214
*/
1315
publicintdeleteAndEarn(int[]nums) {
1416
intn =10001;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp