We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 68a0f6b commit 2d9d371Copy full SHA for 2d9d371
src/main/java/com/fishercoder/solutions/_740.java
@@ -9,6 +9,8 @@ public static class Solution1 {
9
* use the numbers themselves in the indices of another array
10
* <p>
11
* 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/
14
*/
15
public int deleteAndEarn(int[] nums) {
16
int n = 10001;
0 commit comments