- 博客(10)
- 资源 (1)
- 收藏
- 关注
原创 链表的堆排序
class Solution { public: ListNode *sortList(ListNode *head) { if (!head || !head->next) { return head; } ListNode *p = head; ListNode *q = head->next; while (q && q->...
          2018-12-01 16:22:18
           1651
1651
           1
1
        
原创 链表的快速排序
//链表的一个排序的过程 #include <iostream> using namespace std; typedef struct Node { int number; struct Node *next; }node; //采用头插法,此时是没有头结点 void LinkInsert(node **head, node *n_num) { if (*head == N...
          2018-11-26 20:26:26
           279
279
        
         
      
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
 RSS订阅
RSS订阅