https://www.cnblogs.com/gaochundong/p/suffix_tree.html Thanks this author 转载于:https://www.cnblogs.com/cmbyn/p/8893512.html