@datastructures-js/linked-list
Advanced tools
Comparing version 5.2.0 to 5.2.1
@@ -8,2 +8,6 @@ # Changelog | ||
## [Unreleased] | ||
## [5.2.1] - 2022-02-16 | ||
### Fixed | ||
- TS types and readme. | ||
## [5.2.0] - 2022-02-14 | ||
@@ -10,0 +14,0 @@ ### Added |
@@ -255,3 +255,3 @@ # DoublyLinkedList | ||
```js | ||
const node5 = doublyLinkedList.find( | ||
const node5 = doublyLinkedList.findReverse( | ||
(node, position) => node.getValue() === 5 | ||
@@ -575,2 +575,21 @@ ); | ||
<table> | ||
<tr> | ||
<th align="center">params</th> | ||
<th align="center">return</th> | ||
<th align="center">runtime</th> | ||
</tr> | ||
<tr> | ||
<td align="center"> | ||
values: T[] | ||
</td> | ||
<td align="center"> | ||
DoublyLinkedList<T> | ||
</td> | ||
<td align="center"> | ||
O(n) | ||
</td> | ||
</tr> | ||
</table> | ||
##### JS | ||
@@ -577,0 +596,0 @@ ```js |
@@ -420,2 +420,21 @@ # LinkedList | ||
<table> | ||
<tr> | ||
<th align="center">params</th> | ||
<th align="center">return</th> | ||
<th align="center">runtime</th> | ||
</tr> | ||
<tr> | ||
<td align="center"> | ||
values: T[] | ||
</td> | ||
<td align="center"> | ||
LinkedList<T> | ||
</td> | ||
<td align="center"> | ||
O(n) | ||
</td> | ||
</tr> | ||
</table> | ||
##### JS | ||
@@ -422,0 +441,0 @@ ```js |
{ | ||
"name": "@datastructures-js/linked-list", | ||
"version": "5.2.0", | ||
"version": "5.2.1", | ||
"description": "a javascript implementation of LinkedList & DoublyLinkedList", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -15,4 +15,4 @@ import { DoublyLinkedListNode } from './doublyLinkedListNode'; | ||
forEachReverse(cb: (node: DoublyLinkedListNode<T>, position: number) => void): void; | ||
find(cb: (node: DoublyLinkedListNode<T>, startingNode?: DoublyLinkedListNode<T>) => boolean): DoublyLinkedListNode<T>; | ||
findReverse(cb: (node: DoublyLinkedListNode<T>, startingNode?: DoublyLinkedListNode<T>) => boolean): DoublyLinkedListNode<T>; | ||
find(cb: (node: DoublyLinkedListNode<T>) => boolean, startingNode?: DoublyLinkedListNode<T>): DoublyLinkedListNode<T>; | ||
findReverse(cb: (node: DoublyLinkedListNode<T>) => boolean, startingNode?: DoublyLinkedListNode<T>): DoublyLinkedListNode<T>; | ||
filter(cb: (node: DoublyLinkedListNode<T>, position: number) => boolean): DoublyLinkedList<T>; | ||
@@ -19,0 +19,0 @@ head(): DoublyLinkedListNode<T>; |
@@ -13,3 +13,3 @@ import { LinkedListNode } from './linkedListNode'; | ||
forEach(cb: (node: LinkedListNode<T>, position: number) => void): void; | ||
find(cb: (node: LinkedListNode<T>) => boolean): LinkedListNode<T>; | ||
find(cb: (node: LinkedListNode<T>) => boolean, startingNode?: LinkedListNode<T>): LinkedListNode<T>; | ||
filter(cb: (node: LinkedListNode<T>, position: number) => boolean): LinkedList<T>; | ||
@@ -16,0 +16,0 @@ head(): LinkedListNode<T>; |
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
52221