Repository for Data Structures and Algorithms in Python.
These programs can be imported and used as modules in your programs.
-
matrix_operations.py
- Mathematical operations on Matrices
- Addition
- Subtraction
- Multiplication
- Transpose
-
stack.py
- Stack Data Structure
- Push
- Pop
- Top
-
binary_tree_traversal.py
- Traverse Binary Trees
- Without any order
- Pre order
- In order
- Post order
-
tower_of_hanoi_stack.py
- Tower of Hanoi puzzle
- Uses Stack DS from stack.py as Rods
- Display Steps
-
factorial.py
- Factorial of a Positive Integer
- Iteration (for & while)
- Recursion
-
factors.py
- Factors of Non-Zero Integers
- Iteration (for & while)
- Recursion