Skip to content

LifoCollections v0.1.0

Choose a tag to compare

@Shadowman405 Shadowman405 released this 14 May 21:01
· 46 commits to main since this release
314aa88

Contains

  • Stack structure that provides basic stack methods and variables:
    • push() method that adds a new element to the stack.
    • pop() method that removes the top element (the most recently added element).
    • top() method that returns the top element (the most recent added element).
    • count variable that stores the number of elements in the stack.
    • isEmpty variable that returns a Boolean value indicating whether the stack is empty or not.
  • StackStatistics a structure that provides the same methods and variables as the stack, as well as new method:
    • minimumElement method that returns the minimum element in the stack.