/* date due liste ordinate in ordine crescente fonderle in una nuova lista senza creazione di nuovi nodi * /* ricorsione */ lista merge( lista l1, lista l2 ) { if( l1 == NULL ) return l2; if( l2 == NULL ) return l1; if( l1->dato < l2->dato ) { l1->next = merge( l1->next, l2 ); return l1; } l2->dato = merge( l1, l2->next ); return l2; }