Repository files navigation Data Structures and Algorithms in Python
Filename
Description
graph_utils
Helper Utilities for Creating Graphs
bfs_hops_from
BFS and Find Hops (Distance) from Node
mst_kruskals
Minimum Spanning Tree (MST) using Kruskals's Algorithm
mst_prims
Minimum Spanning Tree (MST) using Prim's Algorithm
shortest_path
Find Shortest Paths using Label Setting
Filename
Description
tree_utils
Helper Tree Utilities for Making/Printing/Checking Binary Trees
sorted_binary_tree
Find/Insert/Remove Nodes from Sorted Binary Tree
tree_traversals
Pre/Post/In-Order, and BFS, Tree Traversals
Filename
Description
anagrams
Find all Word Anagrams
binary_search
Perform Binary Search on a Sorted List
combinations
Find all possible subsets of given size where order does not matter
max_combinations
Find Combinations of a subset that sums up maximally to a target
tower_hanoi
Tower of Hanoi (Moving Discs between Pegs)
train_stacks_sort
Sort the carriages of a train using a set of shunting tracks
About
Data Structures and Algorithms in Python
Topics
Resources
Stars
Watchers
Forks
You can’t perform that action at this time.