This repository contains solutions to various LeetCode problems. Each problem is organized in its own folder and includes a solution file. The goal of this repository is to provide clean, efficient, and well-documented solutions for learning and practice purposes.
leetcode-solutions/
โโโ 1-two-sum/
โ โโโ README.md # Description of the problem
โ โโโ solution.js # Solution to the problem
โโโ 26-remove-duplicates-from-sorted-array/
โโโ 27-remove-element/
โโโ 28-find-the-index-of-the-first-occurrence-in-a-string/
โโโ 35-search-insert-position/
โโโ 58-length-of-last-word/
โโโ 66-plus-one/
โโโ 67-add-binary/
โโโ 69-sqrt(x)/
โโโ 9-palindrome-number/
โโโ README.md # Overview of the repository
Each problem folder includes:
README.md
: A description of the problem, including its prompt and any necessary examples.solution.js
: The solution to the problem, written in JavaScript.
- Clone the repository:
git clone https://github.com/your-username/leetcode-solutions.git
- Navigate to a problem folder:
cd leetcode-solutions/1-two-sum
- Review the problem and solution:
- Read the
README.md
file for the problem description. - Open the
solution.js
file to view the code.
- Read the
- Your Name
- GitHub
This repository is licensed under the MIT License.
- Thanks to LeetCode for providing the problems and platform.
- Inspiration from the competitive programming community.