This blog site is dedicated for articles on problem solving using C, C++, data structures, algorithms. Besides this few technical articles are also presented.
Apr 19, 2011
insertion sort of a linked list
void insertionsort(list*& p) { cout << "sorting...\n"; list* res = NULL; while(p) { list* next = p->next; sortedinsert(res, p); p = next; }
No comments:
Post a Comment