摘要: #include<iostream>#include<assert.h>using namespace std;struct node{ int val; node * next; node(int v) { val=v; next=NULL; }};node * merge(node* list1 , node * list2){ assert(list1!=NULL&&list2!=NULL); node * res; if(list1->val<=list2->val) { res=list1; list1=list1->n 阅读全文
posted @ 2011-05-07 16:59 糖拌咸鱼 阅读(360) 评论(0) 推荐(0) 编辑