摘要: [转]从头到尾彻底理解KMP http://blog.csdn.net/v_july_v/article/details/7041827 阅读全文
posted @ 2017-12-05 21:54 Blue_Keroro 阅读(445) 评论(0) 推荐(0) 编辑
摘要: 1 = 14 = 1 + 39 = 1 + 3 + 516 = 1 + 3 + 5 + 725 = 1 + 3 + 5 + 7 + 936 = 1 + 3 + 5 + 7 + 9 + 11....1+3+...+(2n-1) = (2n-1 + 1)n/2 = n*n 时间复杂度为O(sqrt(n) 阅读全文
posted @ 2017-12-05 19:53 Blue_Keroro 阅读(455) 评论(0) 推荐(0) 编辑