This repository contains a collection of LeetCode problems that I have solved. Each problem includes the problem statement, my solution in JavaScript, and any additional relevant explanations or insights.
The repository is organized into different folders, each folder corresponding to a different Leetcode problem. Each problem folder contains a separate README file with the problem statement and my solution JS file.
You can find my solutions to the problems in the corresponding problem folders. Each solution is written in JavaScript and includes comments to explain the approach, my train of thoughts and the time and space complexity analysis.
Feel free to explore the repository and use the solutions as a reference for your own LeetCode practice. You can browse through the different folders to find problems of interest and refer to the solutions for guidance.
Please note that while the solutions provided here are correct and tested, there may be multiple valid solutions for each problem. It's always beneficial to come up with your own solutions and compare them with different approaches.
Contributions to this repository are welcome! If you have a different or optimized solution to a problem, feel free to submit a pull request. Additionally, if you spot any issues or have suggestions for improvements, please open an issue.
Please note that using this repository to directly submit solutions for LeetCode contests or interviews is against the platform's rules. The solutions provided here are intended for personal learning and reference purposes only.
I would like to give credit to LeetHub, a fantastic Chrome extension that automates the process of sharing my LeetCode solutions on GitHub. LeetHub saves me time by automatically creating and updating GitHub repositories for each solved problem, allowing me to focus on problem-solving. I highly recommend checking out LeetHub if you're an avid LeetCode user looking for a convenient way to manage your solutions on GitHub.