KMP算法

http://www.cnblogs.com/dolphin0520/archive/2011/08/24/2151846.html

原文地址:https://www.cnblogs.com/bendantuohai/p/4763338.html