Skip to content

Commit bb9de9f

Browse files
committed
feat:fix-removed comments
1 parent aaec6a1 commit bb9de9f

File tree

1 file changed

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

1 file changed

+0
-5
lines changed

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

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,14 @@ public String gameResult(ListNode head) {
1717
scores[head.val % 2]++;
1818
// Gpt help ended at the line above
1919
} else {
20-
//else will only be applicable if the previous condition is false
2120
scores[head.next.val % 2]++;
22-
//increments score for the next node value
2321
}
2422
}
2523
head = head.next;
26-
//reassigns the variable, head, to point to the next node in the list
2724
}
2825
if (scores[0] == scores[1]) {
29-
//checks for a tie
3026
return "Tie";
3127
} else if (scores[0] > scores[1]) {
32-
//checks if the even score is greater than the odd like the elif in the python example
3328
return "Even";
3429
} else {
3530
return "Odd";

0 commit comments

Comments
 (0)