Skip to content

Instantly share code, notes, and snippets.

View stuyy's full-sized avatar

Anson stuyy

View GitHub Profile
public class BinarySearchTree {
public BSTNode root; // Root of the Tree
public int totalCount;
public boolean isEmpty()
{
return root == null;
}
public class BinarySearchTree {
public BSTNode root; // Root of the Tree
public int totalCount;
public boolean isEmpty()
{
return root == null;
}
public class BinarySearchTree {
public BSTNode root; // Root of the Tree
public int totalCount;
public boolean isEmpty()
{
return root == null;
}
public class BinarySearchTree {
public BSTNode root; // Root of the Tree
public int totalCount;
public boolean isEmpty()
{
return root == null;
}
public class BinarySearchTree {
public BSTNode root; // Root of the Tree
public int totalCount;
public boolean isEmpty()
{
return root == null;
}
public class BinarySearchTree {
public BSTNode root; // Root of the Tree
public int totalCount;
public boolean isEmpty()
{
return root == null;
}
public class BinarySearchTree {
public BSTNode root; // Root of the Tree
public int totalCount;
public boolean isEmpty()
{
return root == null;
}
package HW4;
public class Stack {
Node top;
Node head;
public Stack()
{
public class DoublyLinkedList {
public Node head;
public Node tail;
public int size;
public DoublyLinkedList()
{
public class DoublyLinkedList {
public Node head;
public Node tail;
public int size;
public DoublyLinkedList()
{