Skip to content

Latest commit

 

History

History
9 lines (6 loc) · 229 Bytes

README.md

File metadata and controls

9 lines (6 loc) · 229 Bytes

Stack

A generic LIFO stack backed by an array.

  • push, pop, peek, isEmpty, size
  • pop and peek throw when the stack is empty
  • All operations are O(1) amortized

Run tests: npx vitest src/dsa/structures/stack