Skip to content

Stack and queue structures along with simple applications in Java.

Notifications You must be signed in to change notification settings

mateochr/Stack-and-Queue-structures

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 

Repository files navigation

Stack-and-Queue-structures

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.

About

Stack and queue structures along with simple applications in Java.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published