单向链表的N*log(N)的原址排序
#include <cstdint>
#include <algorithm>
#include <unistd.h>
#include <stdio.h>
struct node
{
int value;
node *next;
node(int v) : value(v), next(nullptr){}
};
node *Partion(node *begin, node *end)
{
if (begin == n.
原创
2022-02-28 09:10:03 ·
200 阅读 ·
0 评论