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

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

时间:2017-01-28 15:55:20      阅读:202      评论:0      收藏:0      [点我收藏+]

标签:blank   topic   ril   string   char   unique   .com   previous   get   

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" !!

标签:blank   topic   ril   string   char   unique   .com   previous   get   

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

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