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 84e285a commit 7cf7a9bCopy full SHA for 7cf7a9b
lesson_12/structs_java/structs_app/src/main/java/com/codedifferently/lesson12/Lesson12.java
@@ -2,7 +2,10 @@
2
3
public class Lesson12 {
4
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
+ */
9
public String gameResult(ListNode head) {
10
11
ListNode current = head;
@@ -20,7 +23,7 @@ public String gameResult(ListNode head) {
20
23
if (evenTeam < oddTeam) {
21
24
return "oddTeamwins";
22
25
} else if (evenTeam > oddTeam) {
- return "eveTeamwins";
26
+ return "evenTeamwins";
27
} else return "tie";
28
}
29
0 commit comments