Skip to content

Latest commit

 

History

History
5 lines (4 loc) · 262 Bytes

README.md

File metadata and controls

5 lines (4 loc) · 262 Bytes

Stack

Let T be a data type. A stack of type T, denoted by Stack<T>, is a sequence of objects of type T with the following methods:

  • push(value: T): adds value to the end of stack;
  • pop() -> T: removes last object of stack, and returns it.