public void TriTest(string wordFilePath) { WordFileWrapper wfw = new WordFileWrapper(wordFilePath); Tri myTri = new Tri(wfw.GetAllWords()); TriNavigator nav = myTri.GetNavigator(); var x = 5; }
public static HashSet<string> WordsInCharBuffer(char[] carr, Tri possibleWords) { HashSet<string> retStore = new HashSet<string>(); for(long i = 0; i < carr.Length; i++) { TriNavigator nav = possibleWords.GetNavigator(); long initalLength = 1; string initialStr = ""; RecurseFromCurrent(carr, i, initalLength, nav, initialStr, retStore); } return retStore; }
public static HashSet <string> WordsInCharBuffer(char[] carr, Tri possibleWords) { HashSet <string> retStore = new HashSet <string>(); for (long i = 0; i < carr.Length; i++) { TriNavigator nav = possibleWords.GetNavigator(); long initalLength = 1; string initialStr = ""; RecurseFromCurrent(carr, i, initalLength, nav, initialStr, retStore); } return(retStore); }