This repository contains my solutions to various Data Structures and Algorithms (DSA) problems, primarily from LeetCode.
I am using this repository to track my daily LeetCode practice and improve my problem-solving skills. The leetcode-DSA.py file contains the code for each LeetCode problem I've solved.
leetcode-DSA.py: This file contains Python solutions to LeetCode problems. Each solution is typically accompanied by comments explaining the approach and logic.
You can browse the leetcode-DSA.py file to see the solutions and learn from them. Feel free to clone this repository and use the code as a reference for your own LeetCode practice.
- Clone the repository:
git clone [https://github.com/Nihalrt/DSAandLeetcode.git](https://github.com/Nihalrt/DSAandLeetcode.git) cd DSAandLeetcode - Open
leetcode-DSA.py: Use a text editor or IDE to view the code. - Find a problem: The file should contain comments that indicate which LeetCode problem each solution corresponds to.
- Run the code (Optional): If you wish to test the code, you can run it using a Python interpreter. Ensure you have Python installed.
Contributions are welcome! If you have a better solution, want to add solutions in other languages, or would like to fix a bug, please follow these steps:
- Fork the repository.
- Create a new branch (
git checkout -b feature/your-feature-nameorgit checkout -b fix/bug-fix-name). - Make your changes.
- Commit your changes (
git commit -am 'Add some feature'). - Push to the branch (
git push origin feature/your-feature-name). - Create a new Pull Request.
Guidelines:
- Please ensure your code is well-commented and easy to understand.
- If adding a new solution, please include the LeetCode problem link in the comments.
- Try to keep code clean and follow pep8 standards.
- If adding solutions in a new language, please create a folder for that language, and include a readme file within the folder, that describes how to run your code.
- SAI NIHAL DIDDI