Last Updated: 1 November 2025
Number of problems solved:
This repository contains solutions to programming problems from platforms like LeetCode and HackerRank.
It is intended as a reference for learning, practice, and inspiration. Users can copy and use the solutions, but attribution is required.
coding-practice/
│
├── HackerRank/ # Solutions for HackerRank problems
├── LeetCode/ # Solutions for LeetCode problems
├── README.md
├── LICENSE
├── requirements.txt # Required Python packages
└── .gitignore
Each problem has its own folder with a solution.py file and optionally a test_cases.json file if test cases are provided.
Follow these steps to set up the repository locally:
git clone https://github.com/ReinerJasin/coding-practice.git
cd coding-practice- Set Up a Python Virtual Environment (Optional but Recommended)
python -m venv venv
source venv/bin/activate # Linux/macOS
venv\Scripts\activate # Windows- Install Dependencies
All required Python packages are listed in
requirements.txt. Install them using:
pip install -r requirements.txt- Navigate to the problem folder (e.g., LeetCode/TwoSum/solution.py)
- Copy and paste the solution into your own code file.
- If a
test_cases.jsonis included, you can run it with the provided test runner.
Important: Please give attribution by mentioning the author in your comments:
# Solution adapted from Reiner Jasin's GitHub repository (https://github.com/ReinerJasin/coding-practice/)- Feel free to submit pull requests to add new solutions or improve existing ones.
- Follow the folder structure (
HackerRank/orLeetCode/). - Include your code in a
solution.pyfile with proper problem naming.
This repository is licensed under the MIT License. You are free to use, copy, and adapt the solutions with attribution.
For questions or feedback, you can open an issue or contact me personally through these links: