BM14 链表的奇偶重排
Less than 1 minute
BM14 链表的奇偶重排
题目链接
题目描述

刷题思路
代码实现
/**
* 结点
* @param x
* @constructor
*/
// eslint-disable-next-line no-unused-vars,unused-imports/no-unused-vars
function ListNode(x) {
this.val = x
this.next = null
}
/**
*
* @param head ListNode类
* @return ListNode类
*/
function oddEvenList(head) {
console.log(head)
}
module.exports = {
oddEvenList,
}