This commit is contained in:
nim-ka
2022-11-08 22:30:37 +00:00
parent b5e7f07541
commit f8e9088e67
13 changed files with 616 additions and 341 deletions

4
dll.js
View File

@@ -2,7 +2,7 @@
// - copy method
// - remove range method
class DLLNode {
DLLNode = class DLLNode {
constructor(val, skip = this, prev = this, next = this) {
this.val = val
this.skip = skip
@@ -29,7 +29,7 @@ class DLLNode {
}
}
class DLL {
DLL = class DLL {
constructor(a = []) {
this.h = new DLLNode()
this.length = 0;