Skip to content

Commit 2d9d371

Browse files
refactor 740
1 parent 68a0f6b commit 2d9d371

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

+2
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
public int deleteAndEarn(int[] nums) {
1416
int n = 10001;

0 commit comments

Comments
 (0)