mirror of
https://github.moeyy.xyz/https://github.com/trekhleb/javascript-algorithms.git
synced 2024-09-20 07:43:04 +08:00
Merge 9742eee388
into ca3d16dcce
This commit is contained in:
commit
3592e41799
@ -26,7 +26,7 @@ export default class Stack {
|
||||
}
|
||||
|
||||
// Just read the value from the start of linked list without deleting it.
|
||||
return this.linkedList.head.value;
|
||||
return this.linkedList.tail.value;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user