https://blog.csdn.net/qq_39521554/article/details/79633207.net
至於爲何是n-1,能夠看這篇文章:blog
http://www.javashuo.com/article/p-zkkjrfyv-nh.htmlget