首页 > 其他 > 详细

LeetCode "459. Repeated Substring Pattern"

时间:2017-01-08 09:52:21      阅读:252      评论:0      收藏:0      [点我收藏+]

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"

原文:http://www.cnblogs.com/tonix/p/6261394.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!