Skip to content

Latest commit

 

History

History
27 lines (16 loc) · 683 Bytes

File metadata and controls

27 lines (16 loc) · 683 Bytes

Stacks

Create a class for a stack data structure using linked list.

Challenge

Stacks class will have push, pop, peek, and isEmpty methods.

Approach & Efficiency

Big O for space is O(n) Big o for time is O(n)

API

  • push(value) : will add to the top of the stack
  • pop() : will take off whats on top of stack and return that
  • peek() : will show whats on top of stack
  • isEmpty(): return boolean wheter stack is empty