From 6522012065712fb0ece31bff9ff10b38a83b10e1 Mon Sep 17 00:00:00 2001 From: Michael Hunteman Date: Thu, 22 Sep 2022 10:14:04 -0500 Subject: Initial commit --- node/GraphNode.class | Bin 0 -> 624 bytes node/GraphNode.java | 21 +++++++++++++++++++++ node/ListNode.class | Bin 0 -> 396 bytes node/ListNode.java | 9 +++++++++ 4 files changed, 30 insertions(+) create mode 100644 node/GraphNode.class create mode 100644 node/GraphNode.java create mode 100644 node/ListNode.class create mode 100644 node/ListNode.java (limited to 'node') diff --git a/node/GraphNode.class b/node/GraphNode.class new file mode 100644 index 0000000..ae63fe4 Binary files /dev/null and b/node/GraphNode.class differ diff --git a/node/GraphNode.java b/node/GraphNode.java new file mode 100644 index 0000000..db15ebb --- /dev/null +++ b/node/GraphNode.java @@ -0,0 +1,21 @@ +package node; + +import java.lang.*; +import java.util.*; + +public class GraphNode { + public int val; + public ArrayList neighbors; + public GraphNode() { + val = 0; + neighbors = new ArrayList(); + } + public GraphNode(int val) { + this.val = val; + neighbors = new ArrayList(); + } + public GraphNode(int val, ArrayList neighbors) { + this.val = val; + this.neighbors = neighbors; + } +} diff --git a/node/ListNode.class b/node/ListNode.class new file mode 100644 index 0000000..a0f839b Binary files /dev/null and b/node/ListNode.class differ diff --git a/node/ListNode.java b/node/ListNode.java new file mode 100644 index 0000000..6b345ec --- /dev/null +++ b/node/ListNode.java @@ -0,0 +1,9 @@ +package node; + +public class ListNode { + public int val; + public ListNode next; + public ListNode() {} + public ListNode(int val) { this.val = val;} + public ListNode(int val, ListNode next) { this.val = val; this.next = next; } +} -- cgit v1.2.3