Skip to content

Commit 7cf7a9b

Browse files
committed
fix: bug in code
1 parent 84e285a commit 7cf7a9b

File tree

1 file changed

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

1 file changed

+5
-2
lines changed

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@
22

33
public class Lesson12 {
44

5-
5+
/**
6+
* Provide the solution to LeetCode 3062 here:
7+
* https://github.com/yang-su2000/Leetcode-algorithm-practice/tree/master/3062-winner-of-the-linked-list-game
8+
*/
69
public String gameResult(ListNode head) {
710

811
ListNode current = head;
@@ -20,7 +23,7 @@ public String gameResult(ListNode head) {
2023
if (evenTeam < oddTeam) {
2124
return "oddTeamwins";
2225
} else if (evenTeam > oddTeam) {
23-
return "eveTeamwins";
26+
return "evenTeamwins";
2427
} else return "tie";
2528
}
2629
}

0 commit comments

Comments
 (0)