Tony's Log

Algorithms, Distributed System, Machine Learning

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

2014年2月6日

摘要: This is simply a human work simulation - exactly reproducing how you do it by hand. Nothing special. You'd better put each step on a paper to make everything clear. Reference:http://blog.csdn.net/rappy/article/details/1737671My code passed all 6 test cases. Yay..// 429#include #include #include 阅读全文
posted @ 2014-02-06 14:20 Tonix 阅读(208) 评论(0) 推荐(0)

摘要: "not more than 1000000 digits" means an efficient in-place solution is needed. My first solution was stringint conversion based. It worked for small ints, but got TLE with large numbers.Thanks tohttp://www.bytehood.com/spoj-the-next-palindrome/418/that shed lights on me. The key idea is th 阅读全文
posted @ 2014-02-06 02:43 Tonix 阅读(226) 评论(0) 推荐(0)