Show Menu
Cheatography

C++ Data Structures & Algorithms Cheat Sheet (DRAFT) by

C++ cheatsheet for working with data structures and algorithms

This is a draft cheat sheet. It is a work in progress and is not finished yet.

Stack ADT Perfor­mance

Time Complexity
Push
Peek
Pop
Worst Case
O(1)
O(1)
O(1)

Stack ADT UML

Stack ADT Interface

 

Array Stack ADT Interface

Array Stack ADT Implem­ent­ation

 

Linked­-List Stack ADT

Linked­-List Array ADT Implem­ent­ation I

Linked­-List ADT Implem­ent­ation II