Welcome to LeetCodeSolutions, a collection of my solutions to various problems on LeetCode. Each solution is implemented in JavaScript, with a focus on clarity, efficiency, and reusability. Whether you're learning algorithms or preparing for coding interviews, this repository might be a helpful resource.
Each solution is stored in a separate file, named according to the problem's number and title on LeetCode. For example:
1. Two Sum
2. Add Two Numbers
3. Longest Substring Without Repeating Characters
4. Median of Two Sorted Arrays
5. Longest Palindromic Substring
...
- Code Implementation: Clear and concise solutions to LeetCode problems.
- Sample Inputs and Outputs: Examples provided to help understand and test the solutions.
- Algorithm Explanation: Inline comments to explain the logic and approach.
- Clone the repository:
git clone https://github.com/TranKienCuong2003/LeetCodeSolutions.git
- Navigate to the repository folder:
cd LeetCodeSolutions
- Run the solutions using Node.js:
node <file_name>.js
This repository includes solutions to a wide range of algorithmic challenges, including but not limited to:
- Array and string manipulations
- Dynamic programming
- Linked list operations
- Searching and sorting algorithms
- Graph and tree traversals
- Regular expression matching
These problems are chosen to cover fundamental concepts, making them ideal for practice and interview preparation.
- Solve as many LeetCode problems as possible.
- Continuously improve algorithmic thinking and coding skills.
- Help others by sharing well-documented solutions.
Contributions, issues, and feature requests are welcome! Feel free to check the issues page.
This repository is licensed under the MIT License. See the LICENSE
file for more details.
Happy coding! 🎉