This repository contains fundamental algorithm implementations in Python. These include sorting, searching, recursion, and mathematical algorithms, commonly used in Data Structures & Algorithms (DSA) courses and coding interviews.
Each script is a standalone implementation demonstrating a specific concept with clean and understandable code.
- Binary Search β Implements binary search after sorting with bubble sort.
- Recursive Binary Search β A recursive approach to binary search.
- Sequential Search β Searches for an element in a list sequentially.
- Bubble Sort β Sorts a list using the bubble sort technique.
- Selection Sort β Implements the selection sort algorithm.
- Insertion Sort β Implements the insertion sort algorithm.
- GCD.py β Uses the Euclidean algorithm to compute the Greatest Common Divisor (GCD).
- LCM.py β Finds the Least Common Multiple (LCM) of given numbers.
- Factorial.py β Calculates the factorial of a number using recursion.
- Fibonacci Series.py β Generates the Fibonacci sequence up to a specified limit.
- Check Parenthesis.py β Uses a stack to check if parentheses in a string are balanced.
- Check Matrices Equality.py β Compares two matrices for equality.
- Largest and Smallest in List.py β Finds the largest and smallest elements in a list.