摘要:
/* * function ListNode(x){ * this.val = x; * this.next = null; * } */ /** * * @param head ListNode类 the head node * @return ListNode类 */ function sort 阅读全文
posted @ 2022-03-27 21:54
方头小小狮
阅读(38)
评论(0)
推荐(0)
摘要:
function ListNode(x){ this.val = x; this.next = null; } function FindFirstCommonNode(pHead1, pHead2) { let p1 = pHead1 let p2 = pHead2 //p1长度遍历 let k1 阅读全文
posted @ 2022-03-27 21:53
方头小小狮
阅读(40)
评论(0)
推荐(0)
摘要:
/* * function ListNode(x){ * this.val = x; * this.next = null; * } */ /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param pHead ListNode类 * @param 阅读全文
posted @ 2022-03-27 21:51
方头小小狮
阅读(50)
评论(0)
推荐(0)
摘要:
function ListNode(x){ this.val = x; this.next = null; } function Merge(pHead1, pHead2) { // write code here let cur = new ListNode() let dummy = cur w 阅读全文
posted @ 2022-03-27 21:49
方头小小狮
阅读(38)
评论(0)
推荐(0)
摘要:
/*function ListNode(x){ this.val = x; this.next = null; }*/ function ReverseList(pHead) { // write code here if(!pHead) return pHead if(pHead!== null 阅读全文
posted @ 2022-03-27 21:41
方头小小狮
阅读(31)
评论(0)
推荐(0)

浙公网安备 33010602011771号