https://github.com/codewitheshayoutube/leetcode-
Collection of LeetCode questions to ace the coding interview! (https://leetcode.com/u/EeshaTariq/)
https://github.com/codewitheshayoutube/leetcode-
Last synced: 9 months ago
JSON representation
Collection of LeetCode questions to ace the coding interview! (https://leetcode.com/u/EeshaTariq/)
- Host: GitHub
- URL: https://github.com/codewitheshayoutube/leetcode-
- Owner: codewithEshaYoutube
- Created: 2025-01-20T16:01:13.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-09-18T19:57:00.000Z (9 months ago)
- Last Synced: 2025-09-18T22:15:01.422Z (9 months ago)
- Language: Python
- Homepage:
- Size: 250 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Leetcode Practice
## Description
A brief description of what your project is about and what it does.
Example:
This project solves the **Two Sum** problem, a common coding challenge where you find two numbers in an array that add up to a given target. The solution uses efficient hashing for a time complexity of O(n).
## Features
- Find two numbers in an array that sum to a target value.
- Efficient O(n) time complexity using a hash map.
- Handles a variety of edge cases and inputs.
## Installation
### Prerequisites
Ensure you have the following installed:
- Python 3.x
- A package manager like `pip` to install dependencies.
### Steps to Install
1. Clone the repository:
```bash
git clone https://github.com/your-username/project-name.git
```
2. Navigate into the project directory:
```bash
cd project-name
```
3. (Optional) Create a virtual environment:
```bash
python3 -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
```
4. Install dependencies (if any):
```bash
pip install -r requirements.txt
```
## Usage
1. Run the solution in your Python environment:
```bash
python solution.py
```
2. Example usage:
```python
solution = Solution()
result = solution.twoSum([2, 7, 11, 15], 9)
print(result) # Output: [0, 1]
```
## Contributing
We welcome contributions! If you have suggestions or improvements, feel free to fork this repository and submit a pull request.
### Steps to Contribute:
1. Fork the repository.
2. Create a new branch for your feature/fix:
```bash
git checkout -b feature-branch
```
3. Make your changes and commit them:
```bash
git commit -m "Add new feature"
```
4. Push to your forked repository:
```bash
git push origin feature-branch
```
5. Create a pull request on GitHub.
## License
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
## Acknowledgements
- Inspired by coding challenges on platforms like LeetCode and HackerRank.
- Special thanks to all contributors and users for their support!