Loading repository dataβ¦
Loading repository dataβ¦
amanantuley / repository
DSA_PYTHON ππ is a collection of well-structured Data Structures and Algorithms (DSA) implementations in Python. It covers essential concepts like Sorting, Searching, Linked Lists, Trees, Graphs, Dynamic Programming, and more! Perfect for coding interviews, competitive programming, and improving problem-solving skills. π‘β¨
Master core Data Structures and Algorithms using Python with real-world coding problems and interview preparation patterns.
Here are the Python files currently included:
π DSA_PYTHON
β
βββ 2_sum.py # Finds two numbers that sum up to a target
βββ Candy_Priority.py # Candy distribution problem (likely a greedy problem)
βββ First_and_Last_Occurence.py # Binary search for range
βββ Left_and_Right_Rotate.py # Array rotations
βββ Merge_sort.py # Merge sort algorithm
βββ Remove_duplicates.py # Remove duplicates from array
βββ Stock_Buy_Sell.py # Max profit stock trading problem
βββ selection_sort.py # Classic selection sort
βββ LICENSE # MIT License
βββ README.md # Project documentation
Clone the repository
git clone https://github.com/yourusername/DSA_PYTHON.git
cd DSA_PYTHON
Run any file
python 2_sum.py
Requirements
| Category | File(s) Example |
|---|---|
| Sorting | Merge_sort.py, selection_sort.py |
| Searching | First_and_Last_Occurence.py |
| Array Problems | 2_sum.py, Remove_duplicates.py |
| Greedy/Logic | Candy_Priority.py, Stock_Buy_Sell.py |
| Rotations | Left_and_Right_Rotate.py |
More advanced topics like trees, graphs, and dynamic programming will be added soon!
Want to add your own solutions or enhancements?
git checkout -b my-featuregit commit -m "Add algorithm"Licensed under the MIT License. Youβre free to use, modify, and distribute this repo.
β If this helped you, consider starring the repo to support the work! π‘ Happy Coding & Keep Solving! π§