This repository contains my solutions to various LeetCode problems, all implemented in JavaScript. If you're preparing for coding interviews or just want to sharpen your algorithm and data structure skills, this repository can serve as a valuable resource.
Please note that while these solutions are provided to help you learn and understand different problem-solving approaches, it's important to solve problems on your own first. LeetCode is a great platform for practicing coding and algorithmic challenges.
To use this repository, simply find the problem you're interested in. Each problem has its own JavaScript file with a explanation of the problem and solution.
You can either clone the repository and run the JavaScript code locally or copy the code directly from the respective problem's file.
Contributions are welcome! If you have a better solution for an existing problem, want to add a new problem, or find any issues with the existing solutions, please follow these steps:
-
Fork the repository.
-
Create a new branch for your contribution:
git checkout -b your-feature
. -
Make your changes, whether it's adding a new solution, improving an existing one, or fixing an issue.
-
Test your code to ensure it works as expected.
-
Commit your changes:
git commit -m "Add your message here"
-
Push to your branch:
git push origin your-feature
. -
Create a pull request to the main repository.
Please follow the standard coding style and make sure your code is well-documented. Provide a clear description of the problem you're addressing and the changes you've made.
This repository is licensed under the MIT License - see the LICENSE file for details.
Happy coding!