我觉得是不是可以参考一下这道题 https://leetcode-cn.com/problems/ju-zhen-zhong-de-lu-jing-lcof/