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.
0 parents commit 14c60edCopy full SHA for 14c60ed
ListNode.java
@@ -0,0 +1,13 @@
1
+public class ListNode{
2
+ private int val;
3
+ public ListNode next;
4
+
5
+ public ListNode(final int val){
6
+ this.val = val;
7
+ this.next = null;
8
+ }
9
10
+ public int value(){
11
+ return this.val;
12
13
+}
TreeNode.java
+public class TreeNode{
+ public TreeNode left, right;
+ public TreeNode(final int val){
+ this.left = this.right = null;
0 commit comments