Skip to content

Commit cbd6861

Browse files
refactor 1145
1 parent f92e820 commit cbd6861

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/main/java/com/fishercoder/solutions/_1145.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package com.fishercoder.solutions;
22

33
import com.fishercoder.common.classes.TreeNode;
4+
45
public class _1145 {
56
public static class Solution1 {
67
public boolean btreeGameWinningMove(TreeNode root, int n, int x) {

src/test/java/com/fishercoder/_1145Test.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
public class _1145Test {
1515

1616
private static _1145.Solution1 solution1;
17-
private static TreeNode root1;
17+
private static TreeNode root;
1818
private static int n;
1919
private static int x;
2020

@@ -25,9 +25,9 @@ public static void setup() {
2525

2626
@Test
2727
public void test1() {
28-
root1 = TreeUtils.constructBinaryTree(Arrays.asList(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11));
28+
root = TreeUtils.constructBinaryTree(Arrays.asList(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11));
2929
n = 11;
3030
x = 3;
31-
Assert.assertEquals(true, solution1.btreeGameWinningMove(root1, n, x));
31+
Assert.assertEquals(true, solution1.btreeGameWinningMove(root, n, x));
3232
}
3333
}

0 commit comments

Comments
 (0)