Skip to content

SergioRt1/LeetCode-problems

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LeetCode problems

This repository contains my (SergioRt1) solutions to various LeetCode problems.

The problems are taken from the list NeetCode 150.

Installation

To use the code in this repository, you will need to have a programming environment set up with the necessary programming languages installed. For each problem, there is a separate file containing the code written in a specific programming language.

Run

To execute a solution, follow these steps:

  1. Navigate to the problem folder using the cd command.

    cd {{Problem Name}}
    
  2. Choose the appropriate language and execute the solution.

    Rust

    rustc solution.rs
    .\solution
    

    Python

    python solution.py
    

    Golang

    go run solution.go
    

Folder Structure

The repository is organized in the following folder structure:

├── Problem Category
│   ├── #. Problem Name
│   │   ├── solution.go
│   │   └── solution.py
│   ├── ...
├── ...
  • Problem Category: Contains folders categorized by problem category (e.g., Array, String, Graphs, etc.).
  • Problem Name: Each problem is contained in its own folder, named after the problem's name with the corresponding number.
  • solution.go: Code file containing the solution to the problem in Golang. Other programming languages may have their own corresponding file extensions.

License

This project is licensed under the Apache-2.0 License - see the LICENSE file for details

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors