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 7e39738 commit 710b3c1Copy full SHA for 710b3c1
lesson_12/structs_java/structs_app/src/main/java/com/codedifferently/lesson12/Lesson12.java
@@ -12,8 +12,8 @@ public String gameResult(ListNode head) {
12
Queue<Integer> queue = new LinkedList<Integer>();
13
14
//create two variables to count points for "Odd" and "Even"
15
- var Odd = new Stack<Integer>();
16
- var Even = new Stack<Integer>();
+ int Odd = 0;
+ int Even = 0;
17
// Loop through the linked list to get pairs (so two nodes at a time)
18
19
// Check each pair of nodes (odd and even):
0 commit comments