Skip to content

Commit 5f960a8

Browse files
committed
task:fixed errors that occured in the node.
1 parent a6fd5d2 commit 5f960a8

File tree

1 file changed

+1
-1
lines changed
  • lesson_12/structs_java/structs_app/src/main/java/com/codedifferently/lesson12

1 file changed

+1
-1
lines changed

lesson_12/structs_java/structs_app/src/main/java/com/codedifferently/lesson12/Lesson12.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public String gameResult(ListNode head) {
1515
int val2 = head.next.val;
1616

1717
if (val1 < val2) {
18-
oddValue += val1;
18+
oddValue += 1;
1919
} else if (val2 < val1) {
2020
evenValue += 1;
2121
}

0 commit comments

Comments
 (0)