摘要: 1 # include 2 3 struct dll{ 4 struct Element* head; 5 int size; 6 }; 7 8 struct Element{ 9 int value; 10 struct Element* p;... 阅读全文
posted @ 2014-10-24 16:03 UDLD 阅读(351) 评论(0) 推荐(0) 编辑
摘要: 直接上代码吧: 因为是双链表,所以快排的i指针后移和j指针前移可以实现。故而可按照数组快排的方式实现双链表快排。 关键是注意边界,因为是双链表,切莫越界。 1 # include 2 3 struct dll{ 4 struct Element* head; ... 阅读全文
posted @ 2014-10-24 13:31 UDLD 阅读(249) 评论(0) 推荐(0) 编辑