https://blog.csdn.net/qq_39521554/article/details/79633207.net
至于为何是n-1,能够看这篇文章:blog
http://www.javashuo.com/article/p-zkkjrfyv-nh.htmlget