Skip to content

Instantly share code, notes, and snippets.

View hieutran's full-sized avatar
💭
I may be slow to respond.

hieutran hieutran

💭
I may be slow to respond.
View GitHub Profile
@TheCrafter
TheCrafter / TST.java
Created September 18, 2017 07:44
Java: Simple Ternary Search Tree
import java.util.ArrayList;
import java.util.List;
/**
* Ternary search trie basic implementation. This piece of code was modified by Dimitris Vlachakis
* on 18/9/2017. You can find more info about the original work and its authors (Robert Sedgewick
* and Kevin Wayne) <a href="http://algs4.cs.princeton.edu/52trie/TST.java.html">here</a>.
*/
public class TST<Value> {
private int size; // size