public void Show(WordCounterPair pair) { if (pair != null) { Console.WriteLine($"{pair.Word}: {pair.Counter}"); } }
public TrieBuffer(int count) { Items = new WordCounterPair[count]; }
public void Add(string word, int counter) { Items[Index] = new WordCounterPair(word, counter); Index++; }