
链表反序
紫菜菌
总结每天的学习成果的辣鸡(但很帅)的人。。O(∩_∩)O哈哈~
展开
-
反转链表后输出新表头
输入一个链表,反转链表后,输出新链表的表头。 function ReverseList(pHead) { // write code here var zhang=[]; var res=[]; v...原创 2020-04-05 00:17:25 · 150 阅读 · 0 评论 -
链表反序(不借助额外空间)
构造链表结构,反序输出链表 构造链表结构: class Node{ constructor(val){ this.val=val; this.next=undefined; } } class lianbiao{ constru...原创 2020-04-04 00:55:45 · 356 阅读 · 0 评论