There are two interfaces, StringStack.java
and IntQueue.java
which define basic methods for a stack (LIFO) and a queue (FIFO), with data of types of String
and int
respectivly. Both implementations were made with a singly linked list and all actions of inserting or removing require O(1) complexity. If the stack or the queue is empty the functions that read from the structure throw exception of type NoSuchElementException
. ListNode.java
is common for both projects.
-
Notifications
You must be signed in to change notification settings - Fork 0
antonioualex/Stack-and-Queue-structures
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Stack and queue structures along with simple applications in Java.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published