mirror of
https://github.moeyy.xyz/https://github.com/trekhleb/javascript-algorithms.git
synced 2024-11-14 06:52:59 +08:00
Compare commits
2 Commits
2a22a79733
...
d6465ba6b6
Author | SHA1 | Date | |
---|---|---|---|
|
d6465ba6b6 | ||
|
5d967733ce |
@ -57,6 +57,14 @@ export default class Stack {
|
|||||||
.map((linkedListNode) => linkedListNode.value);
|
.map((linkedListNode) => linkedListNode.value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return {*}
|
||||||
|
*/
|
||||||
|
length() {
|
||||||
|
return this.linkedList
|
||||||
|
.toArray().length
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {function} [callback]
|
* @param {function} [callback]
|
||||||
* @return {string}
|
* @return {string}
|
||||||
|
Loading…
Reference in New Issue
Block a user