Welcome to the Data Structures & Algorithms repository! 🎉
This repository contains my solutions to LeetCode problems organized by topic. To date, I've solved over 130 problems covering a wide range of data structures and algorithmic techniques using Python 3.
data-structures-algorithms/
├── Array/
├── Graph/
├── Heap/
├── Linked List/
├── Prefix Sum/
├── Queue/
├── Sliding Window/
├── Stacks/
├── Tree/
├── Two Pointers/
└── hashset/
Each folder corresponds to a specific topic on LeetCode. Feel free to explore any category or problem of interest.
- Python 3.7 or higher
- No external libraries required
-
Clone the repository
git clone https://github.com/Omadzze/data-structures-algorithms.git cd data-structures-algorithms -
Navigate to a topic directory:
cd Array -
Run a solution file:
python3 two_sum_1.py
Files follow the pattern:
<problem_name>_<leetcode_id>.py
Example:
two_sum_1.py # Problem 1: Two Sum
Contributions are welcome! If you'd like to add new solutions or improve existing ones:
- Fork this repository.
- Create a new branch:
git checkout -b feature/<topic>/<problem> - Add your solution
- Submit a pull request with a clear description.
This project is licensed under the MIT License.
Happy coding! 🚀