Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save paratechnical/54e2971d02df1364f089 to your computer and use it in GitHub Desktop.
Save paratechnical/54e2971d02df1364f089 to your computer and use it in GitHub Desktop.
Gist 1 from article Autocomplete functionality using prefix trees
private List<string> subsequentStrings;
/// <summary>
/// Create a prefix tree - the root node should always store ' '
/// Initializae the list that will store the strings
/// found during the autocomplete process
/// </summary>
public Tree()
{
_root = new Node(' ');
subsequentStrings = new List<string>();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment