func (t *Trie) Exists(s string) bool {

	current := t.root
	for i := 0; i < len(s); i++ {

		child := current.child(s[i])
		if child == nil {
			return false
		}
		current = child

	}

	return true

}
// Exists returns true if a string exists as it is in the trie
Exists returns true if a string exists as it is in the trie
// Exists returns true if a string exists as it is in the trie
func (t *Trie) Exists(s string) bool {
	current := t.root
	for i := 0; i < len(s); i++ {
		child := current.child(s[i])
		if child == nil {
			return false
		}
		current = child
	}
	return true
}
func ( t * Trie ) Exists ( s string ) bool { current := t . root for i := 0 ; i < len ( s ) ; i ++ { child := current . child ( s [ i ] ) if child == nil { return false } current = child } return true }
Exists returns true if a string exists as it is in the trie
Exists returns true if a string exists as it is in the trie