Browse Code Data structures and algorithms Data structure implementations No posts found. Trees and variations No posts found. Graph theory Shortest path using Dijkstra’s algorithm – Graph algorithm 3 Topological Sort using DFS and Kahn’s algorithm – Graph algorithm 2 Minimum Spanning Tree using Kruskal’s algorithm – Graph algorithm 1 Graph as adjacency list – Graph implementation 1 Weighted graph as adjacency list – Graph implementation 2 Fundamental algorithms Binary search (2 solutions) – iteration and recursion Selection sort gif | code and visuals Insertion sort gif | code and visuals Bubble sort (2 solutions) – basic and optimized Heapsort (2 solutions) – iteration and recursion Merge sort gif | code and visuals Quick sort gif | Code and visuals Math Fibonacci number – find nth fibonacci 4 solutions Catalan number – find nth Catalan number 3 solutions Factorial number – calculate factorials 2 solutions Prime number – check a number is prime number 3 solutions