Coder Social home page Coder Social logo

ayezabashir / leetcode Goto Github PK

View Code? Open in Web Editor NEW

This project forked from godkingjay/leetcode

0.0 0.0 0.0 822 KB

LeetCode Solutions

License: MIT License

JavaScript 2.05% Ruby 0.77% C++ 30.23% Python 7.19% PHP 0.22% Java 57.72% C# 0.22% Elixir 0.13% Kotlin 1.15% Dart 0.15% TypeScript 0.18%

leetcode's Introduction

LeetCode

This repository contains solutions to LeetCode problems, categorized by difficulty level (Easy, Medium, Hard). Each problem has its own dedicated directory with a README.md file providing problem descriptions and explanations, as well as solution files in various programming languages.

Table of Contents

Getting Started

To access the solutions, navigate to the desired difficulty level directory and then to the specific problem directory. Inside each problem directory, you will find a README.md file with the problem description and explanations, as well as solution files in various programming languages.

Difficulty Level

Directory Structure

The repository is organized as follows:

LeetCode/
├── Easy/
│   ├── Problem1/
│   │   ├── README
│   │   ├── solution.java
│   │   ├── solution.cpp
│   │   ├── Approach1/
│   │   │   ├── README
│   │   │   ├── solution.js
│   │   │   └── ...
│   │   └── ...
│   ├── Problem2/
│   │   ├── README
│   │   ├── solution.java
│   │   ├── solution.cpp
│   │   ├── Approach1/
│   │   │   ├── README
│   │   │   ├── solution.js
│   │   │   └── ...
│   │   └── ...
│   └── ...
├── Medium/
│   ├── Problem1/
│   │   ├── README
│   │   ├── solution.java
│   │   ├── solution.cpp
│   │   ├── Approach 1/
│   │   │   ├── README
│   │   │   ├── solution.js
│   │   │   └── ...
│   │   └── ...
│   ├── Problem2/
│   │   ├── README
│   │   ├── solution.java
│   │   ├── solution.cpp
│   │   └── ...
│   └── ...
├── Hard/
│   ├── Problem1/
│   │   ├── README
│   │   ├── solution.java
│   │   ├── solution.cpp
│   │   ├── Approach1/
│   │   │   ├── README
│   │   │   ├── solution.js
│   │   │   └── ...
│   │   └── ...
│   ├── Problem2/
│   │   ├── README
│   │   ├── solution.java
│   │   ├── solution.cpp
│   │   └── ...
│   └── ...

New Solution

For problems with multiple solution, you can add your solution like this:

// Solution #1
class Solution {
  /*
   * Code for Solution #1
   */
}


// Solution #2
class Solution {
  /*
   * Code for Solution #2
   */
}

If you want to add a new approach and want to explain your approach you can add your solution by following this directory structure: (see example)

LeetCode/
├── [DIFFICULTY]/
│   ├── [PROBLEM]/
│   │   ├── README
│   │   ├── solution.java
│   │   ├── solution.cpp
│   │   ├── [MY APPROACH]/
│   │   │   ├── README
│   │   │   ├── solution.java
│   │   │   └── ...
│   │   └── ...

Contributing

Contributions are welcome! If you'd like to add your own solutions or improve existing ones, please follow these guidelines:

  1. Fork the repository.
  2. Create a new branch for your feature or bug fix.
  3. Make your changes and commit them with clear commit messages.
  4. Push your changes to your fork.
  5. Submit a pull request to this repository.

Please ensure your code follows good coding practices, is well-documented, and includes test cases where applicable. see the CONTRIBUTING file for details.

License

This project is licensed under the MIT License - see the LICENSE file for details.

leetcode's People

Contributors

aakashdeshamne avatar akshaj1017 avatar aliwarraich007 avatar aman95495 avatar ansisme avatar aryanksanghvi avatar athulkkumar avatar ayezabashir avatar godkingjay avatar imranhc0 avatar karanjamwal21 avatar kevinpaul468 avatar khushi2762 avatar kittoteja avatar ltwoz avatar noklent-fardian avatar omarihab99 avatar oyerounak avatar pakeetharan avatar ppraneesh avatar prashantdesale2004 avatar pv-vardhan avatar shalaahuddien avatar srexrg avatar subhashini014 avatar tusharknwl avatar tyagi-data-wizard avatar vagxrth avatar virtual4087 avatar vsen910 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.