摘要: Reverse digits of an integer.Example1:x = 123, return 321Example2:x = -123, return -321此题主要考查几种特殊的前导0的情况,还有单独为0的情况注意利用c++中的reverse时要加命名空间,不然该函数会递归调用自己... 阅读全文
posted @ 2014-03-26 18:16 OpenSoucre 阅读(192) 评论(0) 推荐(0) 编辑
摘要: You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single ... 阅读全文
posted @ 2014-03-26 17:29 OpenSoucre 阅读(181) 评论(0) 推荐(0) 编辑