摘要: 关于字符串的子串问题,我们经常需要利用的是已经访问的部分的信息,来降低复杂度,和提高效率;在求最长回文子串的问题中,Manacher's algorithm提供了一种很好的机制,虽然部分地方不太容易理解先说下核心的思想:先对原字符串进行预处理,将字符串"abc"转换为"$#a#b#c#"的形式,既避... 阅读全文
posted @ 2014-09-02 22:06 KarayLee 阅读(246) 评论(0) 推荐(0)
摘要: 1068. Find More Coins (30)Eva loves to collect coins from all over the universe, including some other planets like Mars. One day she visited a univers... 阅读全文
posted @ 2014-06-08 14:12 KarayLee 阅读(1274) 评论(0) 推荐(0)
摘要: 写文之前感谢这几位作者的分享(1)http://blog.sina.com.cn/s/blog_60946c8e0100efg7.html(2)http://www.myexception.cn/eclipse/17226.html在(一)中有提过用的tomcat 7.x版本,Myeclipse10... 阅读全文
posted @ 2014-05-08 10:49 KarayLee 阅读(2857) 评论(0) 推荐(0)
摘要: 好久没用java环境和写java程序,搞得配个环境都特别凌乱,不断地翻各种经验文档,最终才搞定,为了方便其他人,结合自己的过程,写在这里,希望能为需要的朋友提供帮助参考了网络上相关作者分享的,涉及到一致的,还望见谅哦,找不到之前看的网页了首先下载Myeclipse安装程序,这是肯定要得的,相关的配置... 阅读全文
posted @ 2014-05-07 18:52 KarayLee 阅读(2294) 评论(0) 推荐(0)
摘要: 1047. Student List for Course (25)Zhejiang University has 40000 students and provides 2500 courses. Now given the registered course list of each stude... 阅读全文
posted @ 2014-05-04 16:36 KarayLee 阅读(520) 评论(0) 推荐(0)
摘要: 题目描述:1038. Recover the Smallest Number (30)Given a collection of number segments, you are supposed to recover the smallest number from them. For examp... 阅读全文
posted @ 2014-05-03 22:31 KarayLee 阅读(791) 评论(0) 推荐(1)