Skip to content

Commit 3214001

Browse files
authored
Update Solution.java
1 parent 0740b60 commit 3214001

File tree

1 file changed

+2
-2
lines changed
  • src/main/java/g3001_3100/s3068_find_the_maximum_sum_of_node_values

1 file changed

+2
-2
lines changed

Diff for: src/main/java/g3001_3100/s3068_find_the_maximum_sum_of_node_values/Solution.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
// #2024_03_31_Time_1_ms_(100.00%)_Space_54.5_MB_(67.07%)
55

66
public class Solution {
7-
public long maximumValueSum(int[] A, int k, int[][] edges) {
7+
public long maximumValueSum(int[] nums, int k, int[][] edges) {
88
long res = 0;
99
int d = 1 << 30;
1010
int c = 0;
11-
for (int a : A) {
11+
for (int a : nums) {
1212
int b = a ^ k;
1313
res += Math.max(a, b);
1414
c ^= a < b ? 1 : 0;

0 commit comments

Comments
 (0)