We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent da1729c commit 29bfb14Copy full SHA for 29bfb14
src/_DataStructures_/DoublyLinkedList/Node.js
@@ -0,0 +1,8 @@
1
+class Node {
2
+ constructor(data, previous, next) {
3
+ this.data = data;
4
+ this.previous = previous;
5
+ this.next = next;
6
+ }
7
+}
8
+module.exports = Node;
src/_DataStructures_/DoublyLinkedList/index.js
@@ -1,11 +1,5 @@
/* eslint-disable class-methods-use-this */
-class Node {
- constructor(data, previous, next) {
- this.data = data;
- this.previous = previous;
- this.next = next;
- }
-}
+const Node = require('./Node');
9
10
class DoublyLinkedList {
11
constructor() {
0 commit comments