Skip to content

Commit 31864d0

Browse files
Fixing Errors after moving
1 parent 9d4ca32 commit 31864d0

5 files changed

Lines changed: 13 additions & 7 deletions

File tree

17 DFS and BFS/InvertBinaryTree.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
2-
31
/**
42
* Given the root of a binary tree, invert the
53
* tree, and return its root.

22 Sliding Window/ContainsDuplicate2.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
import java.util.HashSet;
32
import java.util.Set;
43

8 Linked List/PalindromeLinkedList.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
2-
import in.knowledgegate.dsa.ListNode;
3-
41
/**
52
* Given the head of a singly linked list,
63
* return true if it is a palindrome.

ListNode.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
class ListNode {
32

43
public int val;

TreeNode.java

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
public class TreeNode {
2+
3+
public int val;
4+
public TreeNode left;
5+
public TreeNode right;
6+
7+
public TreeNode() {
8+
}
9+
10+
public TreeNode(int val) {
11+
this.val = val;
12+
}
13+
}

0 commit comments

Comments
 (0)