Skip to content

HamidMolareza/LeetCode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

LeetCode Problems

Request to solve a new question - Ask a Question

GitHub Pull Requests welcome

About

The solutions to some LeetCode problems.

All the solutions that are here, get full score (100) in LeetCode. But that does not necessarily mean the best answer.

🌟 If you like this project, please give it a star.

In this section you can see the solutions, And if you want, you can send your solution (in any language).

List of problems-solutions

Number of problems solved: 45

Number of solutions: 59

Problem Description Solutions Last commit
find the index of the first occurrence in a string Readme csharp 16-03-2023
maximum depth of binary tree Readme typescript 19-02-2023
symmetric tree Readme csharp 18-02-2023
same tree Readme typescript 16-02-2023
binary tree inorder traversal Readme csharp 15-02-2023
merge sorted array Readme typescript 12-02-2023
remove duplicates from sorted list Readme csharp 06-02-2023
climbing stairs Readme typescript 04-02-2023
sqrtx Readme csharp 30-01-2023
add binary Readme typescript 29-01-2023
plus one Readme csharp 28-01-2023
length of last word Readme typescript 28-01-2023
search insert position Readme csharp 22-01-2023
remove element Readme typescript 20-01-2023
remove duplicates from sorted array Readme csharp 15-01-2023
palindrome number Readme typescript - csharp 14-01-2023
valid parentheses Readme typescript 13-01-2023
longest common prefix Readme csharp 09-01-2023
roman to integer Readme csharp 07-01-2023
two sum Readme typescript - csharp 03-01-2023
project employees II Readme SQL 18-10-2022
project employees I Readme SQL 16-10-2022
product sales analysis II Readme SQL 16-10-2022
product sales analysis i Readme SQL 15-10-2022
actors and directors who cooperated at least three times Readme SQL 13-10-2022
swap salary Readme SQL 12-10-2022
not boring movies Readme SQL 12-10-2022
biggest single number Readme SQL 11-10-2022
shortest distance in a line Readme SQL 11-10-2022
triangle judgement Readme SQL 10-10-2022
sales person Readme SQL 08-10-2022
consecutive available seats Readme SQL 07-10-2022
friend requests i overall acceptance rate Readme csharp-SQL - SQL 06-10-2022
classes more than 5 students Readme csharp-SQL - SQL 03-10-2022
big countries Readme csharp-SQL - SQL 27-09-2022
employee bonus Readme csharp-SQL - SQL 22-09-2022
customer placing the largest number of orders Readme csharp-SQL - SQL 20-09-2022
find customer referee Readme csharp-SQL - SQL 20-09-2022
rising temperature Readme csharp-SQL - SQL 20-09-2022
combine two tables Readme csharp-SQL - SQL 18-09-2022
customers who never order Readme csharp-SQL - SQL 18-09-2022
delete duplicate emails Readme csharp-SQL - SQL 18-09-2022
duplicate emails Readme csharp-SQL - SQL 18-09-2022
employees earning more than their managers Readme csharp-SQL - SQL 18-09-2022
merge two sorted lists Readme csharp 12-09-2022

Usage

All solutions are in the Solutions folder.

In LeetCode, the structure of the problem link is as follows: https://leetcode.com/problems/{Problem-Name}

We keep all problem solutions in a folder called Problem-Name. For example, the solutions to this problem with name two-sum are located in folder two-sum inside Solutions folder.

Every problem can be solved with different languages. For example, C#, Python, etc. To separate the languages, we save each language in a folder with its own name. For example, for C#, the solution is placed in a folder called csharp.

For example, the tree structure of a solutions can look like this:

  • Solutions
    • two-sum
      • README.md (the question text)
      • csharp
        • Solution
          • program.cs
        • Test
        • README (about solutions)
      • python
        • program.py
    • combine-two-tables
      • README.md (the question text)
      • MySQL
        • solution.sql
        • README.md (about solution)

For see default templates, you can see this section.

Known issues

Please see this list and help if you can.

Roadmap

See the open issues for a list of proposed features (and known issues).

Support

Reach out to the maintainer at one of the following places:

Features

  • Automatic readme generation
  • Clean code
  • Documentation
  • Our structure support multi-language
  • CI/CD with GitHub action

Contributing

First off, thanks for taking the time to contribute! Contributions make the free/open-source community such an amazing place to learn, inspire, and create. Any contributions you make will benefit everybody else and are greatly appreciated.

Please read our contribution guidelines, and thank you for being involved!

Authors & contributors

The original setup of this repository is by Hamid Molareza.

About Readme.md

This file is generated automatically. You can see the source of this program in the Readme Generator directory.

This project uses the Payadel README template.

Why readme is auto-generated?

I didn't want to manually update the table in this file every time a problem was solved. This is repetitive work and programmers hate repetitive work!

How does readme generated?

In summary, the list of problems and solutions is read from the Solutions folder, and the processed information is placed in this format. For more information please see Readme Generator.

License

This project is licensed under the GPLv3.

See LICENSE for more information.

Related

If you want your repository to be added, send me the link in the issues.

About

The solutions to LeetCode problems

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published