Implementing a Stack in Rust.

Stacks belong to the commonly used data structures especially when implementing optimized algorithms. There entire philosophy rely on the so called LIFO principle (Last In First Out). This actually already describes most of the mechanism behind a stack.

A stack

  1. let’s you put an element to it: push
  2. let’s you remove and receive the last put element: pop

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
applied.math.coding

applied.math.coding

I am a mathematician and software developer who likes writing advanced code and to do research in applied and pure mathematics.