摘要: 想当初写过C的大数加减法,恍如隔世。 1 #include 2 using namespace std; 3 struct ListNode { 4 int val; 5 ListNode *next; 6 ListNode(int x) : val(x), next(NULL) {} 7 }; 8 class Solution { 9 public:10 ListNode *addTwoNumbers(ListNode *l1, ListNode *l2) {11 if(l1 == NULL) return l2;12 if(... 阅读全文
posted @ 2014-03-20 21:25 青轰的后花园 阅读(136) 评论(0) 推荐(0) 编辑