Skip to content

codewithEshaYoutube/Leetcode-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Project Name

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:

    git clone https://github.com/your-username/project-name.git
  2. Navigate into the project directory:

    cd project-name
  3. (Optional) Create a virtual environment:

    python3 -m venv venv
    source venv/bin/activate  # On Windows: venv\Scripts\activate
  4. Install dependencies (if any):

    pip install -r requirements.txt

Usage

  1. Run the solution in your Python environment:

    python solution.py
  2. Example usage:

    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:
    git checkout -b feature-branch
  3. Make your changes and commit them:
    git commit -m "Add new feature"
  4. Push to your forked repository:
    git push origin feature-branch
  5. Create a pull request on GitHub.

License

This project is licensed under the MIT License - see the 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!

About

Collection of LeetCode questions to ace the coding interview! (https://leetcode.com/u/EeshaTariq/)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published