随笔分类 -  KMP

摘要:link /** * Definition for a binary tree node. * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode(int x) : val(x), left(NUL 阅读全文
posted @ 2020-05-07 08:40 feibilun 阅读(124) 评论(0) 推荐(0)
摘要:link Solution: follow1 / follow 2 means the established string follow along s1 / s2.At start, follow1=follow2=1.For instance, s1 = "leetcode", s2 = "l 阅读全文
posted @ 2020-03-29 20:08 feibilun 阅读(241) 评论(0) 推荐(0)
摘要:link /** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNode(int x) : val(x), next(NULL) {} * }; */ /** * 阅读全文
posted @ 2020-03-01 20:01 feibilun 阅读(204) 评论(0) 推荐(0)