@datastructures-js/linked-list
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -9,4 +9,8 @@ # Changelog | ||
## [2.0.1] - 2020-03-22 | ||
### Fixed | ||
- Readme & package.json | ||
## [2.0.0] - 2020-03-22 | ||
### Changed | ||
- New release for LinkedList & DoublyLinkedList |
{ | ||
"name": "@datastructures-js/linked-list", | ||
"version": "2.0.0", | ||
"description": "linked list implementation in javascript", | ||
"version": "2.0.1", | ||
"description": "a javascript implementation of LinkedList & DoublyLinkedList", | ||
"main": "index.js", | ||
@@ -16,3 +16,6 @@ "scripts": { | ||
"linked list es6", | ||
"linked list js" | ||
"linked list js", | ||
"doubly linked list", | ||
"doubly linked list es6", | ||
"doubly linked list js" | ||
], | ||
@@ -19,0 +22,0 @@ "author": "Eyas Ranjous <eyas.ranjous@gmail.com>", |
@@ -7,3 +7,3 @@ # @datastrucures-js/linked-list | ||
a javascript implementation for LinkedList & DoublyLinkedList. | ||
a javascript implementation of LinkedList & DoublyLinkedList. | ||
@@ -86,9 +86,9 @@ <img width="429" alt="Linked List" src="https://user-images.githubusercontent.com/6517308/35762715-5d00c9bc-0861-11e8-88f7-6e503a1fa3af.png"> | ||
```js | ||
let head1 = linkedList.insertFirst(1); // head1.getValue() = 1 | ||
head1 = linkedList.insertFirst(2); // head1.getValue() = 2 | ||
console.log(head1.getNext().getValue()); // 1 | ||
linkedList.insertFirst(1); | ||
const head1 = linkedList.insertFirst(2); | ||
console.log(head1.getValue()); // 2 | ||
let head2 = doublyLinkedList.insertFirst(1); // head2.getValue() = 1 | ||
head2 = doublyLinkedList.insertFirst(2); // head2.getValue() = 2 | ||
console.log(head2.getNext().getValue()); // 1 | ||
doublyLinkedList.insertFirst(1); | ||
const head2 = doublyLinkedList.insertFirst(2); | ||
console.log(head2.getValue()); // 2 | ||
``` | ||
@@ -123,9 +123,9 @@ | ||
```js | ||
let last1 = linkedList.insertLast(3); // last1.getValue() = 3 | ||
last1 = linkedList.insertLast(4); // last1.getValue() = 4 | ||
linkedList.insertLast(3); | ||
const last1 = linkedList.insertLast(4); | ||
console.log(last1.getValue()); // 4 | ||
console.log(last1.getNext()); // null | ||
let last2 = doublyLinkedList.insertLast(3); // last2.getValue() = 3 | ||
last2 = doublyLinkedList.insertLast(4); // last2.getValue() = 4 | ||
doublyLinkedList.insertLast(3); | ||
const last2 = doublyLinkedList.insertLast(4); | ||
console.log(last2.getValue()); // 4 | ||
@@ -132,0 +132,0 @@ console.log(last2.getPrev().getValue()); // 3 |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
0
36832