Tag: linter

JavaScript链接列表:方法removeHead()和contains()不起作用

使用ES6风格,任务是build立一个链表,并通过npm lintertesting。 这是我写的代码: class LinkedList { constructor() { this.head = null; this.tail = null; // Do not modify anything inside of the constructor } // Wraps the given value in a node object and adds the node to the tail of the list // If the list is empty, the new element is considered the […]