摘要: package test; public class ListNode{ int val; ListNode next; public ListNode(int x) { val = x; } public ListNode() {} public static void main(String[] 阅读全文
posted @ 2019-11-04 16:37 stul 阅读(119) 评论(0) 推荐(0) 编辑
摘要: KMP 初学 KMP 算法分为两个步骤。 1 是计算出 next 数组, 2 是根据 next 数组来求得 index 。 阅读全文
posted @ 2019-11-04 09:32 stul 阅读(97) 评论(0) 推荐(0) 编辑