C++/Python implementations of fundamental algorithms and data structures.
The leetcode/ directory has solutions to LeetCode challenges and misc/ contains various other exercises:
candybar.cpp- memoization with fun improvement using matrix exponentiationknapsack.cpp- binary knapsack with memoizationgraph_serialize.cpp- translate between graph ofvector<Node*>and serialvector<int>node_parser.py- binary tree parser withregexdijkstra.cpp- shortest path with binary heapbench_dijkstra.cpp- benchmark Dijkstra against baseline, Fibonacci heap, binary tree, and binary heapsorting.cpp- compare quicksort and heapsort using custom and built-in min-heaptrees.cpp- binary splay tree with inversionobjects.cpp- basic operator overloading
g++ <file>.cpp -o <file> -std=c++17
./<file>python <file>.py