This commit is contained in:
psquared-dev 2024-07-17 10:42:51 +09:00 committed by GitHub
commit 3592e41799
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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;
}
/**