摘要: //双向循环链表 class DoubleNode { constructor (data) { this.data = data this.prev = null this.next = null } } class DoubleCycleList { constructor () { this. 阅读全文
posted @ 2020-02-23 21:30 前端之旅 阅读(391) 评论(0) 推荐(0)
摘要: //单向循环链表 class Node { constructor (data) { this.data = data this.next = null } } class CycleList { constructor () { this.head = null this.length = 0 } 阅读全文
posted @ 2020-02-23 20:08 前端之旅 阅读(311) 评论(0) 推荐(0)