标签:discuss substring sse bst ati with util pytho python
Brutal force works - and a smarter way is to utilize KMP. The most popular two solutions are essentially the same - one is obvious KMP, and another one is https://discuss.leetcode.com/topic/68206/easy-python-solution-with-explaination , which simplifies the code a lot - bravo!
LeetCode "459. Repeated Substring Pattern"
标签:discuss substring sse bst ati with util pytho python
原文地址:http://www.cnblogs.com/tonix/p/6261394.html