Useful python algorithms and data structures
Implementation of a set data structure with the additional property of being subscriptable
Implementation of trie data strucutre
Implementation of disjoint set data strucutre
Implementation of graph data strucutre
Functions to create a progress bar or progress percentage
- Iterative BFS (for graph)
- Iterative DFS (for graph)
- Dijkstras (for graph)
Efficient GCD and LCM using Euclidean Algorithm
Decorator to time how long it takes to execute a function
- Sequence of first n consecutive squares
- Fibonacci sequence
- Catalan numbers
Generate all (ordered) partitions of a list
Algorithm for finding the longest increasing subsequence