/// <summary> /// CONSTRUCTOR /// </summary> public Trie() { _count = 0; _root = new TrieNode(' ', false); }
/// <summary> /// IComparer interface implementation /// </summary> public int CompareTo(TrieNode other) { if (other == null) return -1; return this.Key.CompareTo(other.Key); }
/// <summary> /// Clears this insance. /// </summary> public void Clear() { _count = 0; _root.Clear(); _root = new TrieNode(' ', false); }