链表快速排序 大致思想是通过一个指针数组转化为常规数组快速排序,最后再重新梳理链表。 #include #include using namespace std;typedef struct NODE{ int data; NODE* next; NODE(int _data) : data(_da...
分类:
其他好文 时间:
2014-06-21 10:01:47
阅读次数:
210
Partition ListGiven a linked list and a valuex,
partition it such that all nodes less thanxcome before nodes greater than or
equal tox.You should pres...
分类:
其他好文 时间:
2014-06-12 06:18:55
阅读次数:
562