We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6295808 commit 0cae614Copy full SHA for 0cae614
src/main/java/g0401_0500/s0494_target_sum/Solution.java
@@ -6,7 +6,6 @@
6
public class Solution {
7
public int findTargetSumWays(int[] nums, int target) {
8
int totalSum = 0;
9
- int n = nums.length;
10
for (int num : nums) {
11
totalSum += num;
12
}
0 commit comments