摘要: Given a list, rotate the list to the right bykplaces, wherekis non-negative.For example:Given1->2->3->4->5->NULLandk=2,return4->5->1->2->3->NULL. 1 /*... 阅读全文
posted @ 2014-10-03 16:28 zhouyoulie 阅读(161) 评论(0) 推荐(0) 编辑
摘要: Reverse digits of an integer.Example1:x = 123, return 321Example2:x = -123, return -321 1 #include 2 #include 3 #include 4 5 using namespace std; ... 阅读全文
posted @ 2014-10-03 14:23 zhouyoulie 阅读(137) 评论(0) 推荐(0) 编辑