🐫 OCaml Algorithm Complexity Cheat Sheet

Interactive reference for all data structures & algorithms in this repository

O(1) Constant
O(log n) Logarithmic
O(n) Linear
O(n log n) Linearithmic
O(n²)+ Polynomial/Exponential
Amortized
Algorithm / Structure Operation Best Average Worst Space Visual File