https://blog.csdn.net/m0_37482868/article/details/81984374(公式和辅助数组) https://www.cnblogs.com/ziyuemeng/p/12375536.html(数组和链表)