首页 > 其他 > 详细

LeetCode "467. Unique Substrings in Wraparound String" !!

时间:2017-01-28 15:54:33      阅读:315      评论:0      收藏:0      [点我收藏+]

Check out this brilliant solution:
https://discuss.leetcode.com/topic/70658/concise-java-solution-using-dp

My first solution was a O(n^2) typical DP boiler-plate code. The key is, that solution is too generalized. With given char as the ending char in such a string, its previous chars are the same.

LeetCode "467. Unique Substrings in Wraparound String" !!

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

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