16 lines
360 B
C#
16 lines
360 B
C#
using System.Collections.Generic;
|
|
|
|
namespace XRLib.Collections
|
|
{
|
|
public class TrieNode
|
|
{
|
|
public Dictionary<char, TrieNode> Children { get; private set; }
|
|
public bool IsEndOfWord { get; set; }
|
|
|
|
public TrieNode()
|
|
{
|
|
Children = new Dictionary<char, TrieNode>();
|
|
IsEndOfWord = false;
|
|
}
|
|
}
|
|
} |