ICode9

精准搜索请尝试: 精确搜索
  • leetcode 077. 链表排序 JavaScript2022-08-02 18:34:41

    // 剑指 Offer II 077. 链表排序 /** * @param {ListNode} head * @return {ListNode} */ var sortList = function (head) { // 1. 首先判断当前链表不存在 ,或链表只有一个节点,则直接返回 head if (!head || !head.next) { return head; } // 2. 获

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有