Compare commits

...

2 Commits

Author SHA1 Message Date
Melwin Amith D'Almeida
d6465ba6b6
Merge 5d967733ce into 2c67b48c21 2024-04-25 08:18:08 +08:00
Melwin Amith D'Almeida
5d967733ce
Update Stack.js 2019-10-24 20:13:44 +05:30

View File

@ -57,6 +57,14 @@ export default class Stack {
.map((linkedListNode) => linkedListNode.value);
}
/**
* @return {*}
*/
length() {
return this.linkedList
.toArray().length
}
/**
* @param {function} [callback]
* @return {string}