import com.google.common.collect.Maps; import java.util.Map; /** * tree 节点 * Created by shuly on 16-7-18. */ public class Node { boolean isRoot; boolean isEnd; int cnt; Map<Character,Node> childrens; public Node(){ if (childrens == null) childrens =…