码迷,mamicode.com
首页 > 其他好文 > 详细

LeetCode "459. Repeated Substring Pattern"

时间:2017-01-08 09:53:14      阅读:255      评论:0      收藏:0      [点我收藏+]

标签: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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!