Skip to content

Instantly share code, notes, and snippets.

View iowaguy's full-sized avatar

Ben Weintraub iowaguy

View GitHub Profile

Keybase proof

I hereby claim:

  • I am iowaguy on github.
  • I am benweintraub (https://keybase.io/benweintraub) on keybase.
  • I have a public key ASAnfrULEkCZqAJeGi_jtzZEBHOanFYTtXMG5sBEk0sWdQo

To claim this, I am signing this object:

@iowaguy
iowaguy / Node.java
Created January 14, 2015 04:49
A depth first search implementation with some testing features
import java.util.LinkedList;
public class Node {
public String name;
public LinkedList<Node> children = new LinkedList<Node>();
public Node(String name) {
this.name = name;
}
@iowaguy
iowaguy / TernaryTree.java
Created December 12, 2014 23:42
An implementation of a ternary tree in Java.
import java.util.NoSuchElementException;
public class TernaryTree {
private Node root;
/**
* Insert node into root of ternary tree.
*
* @param newValue The integer value to be inserted into the tree.