This is a collection of solutions to various LeetCode problems made with C#. This repository organizes LeetCode problems by difficulty: easy, medium, and hard. Each problem contains a single .cs file with a main method that can be compiled in the Program.cs file.
- Git
- .Net SDK 9.0+
- Clone the repository
git clone https://github.com/Angelmmc/leetcode-cs- Navigate to the root folder
cd leetcode-cs- Compile the program
dotnet build- Run the program
dotnet runOptional: Open the .sln file in the Visual Studio IDE
-
Navigate through the easy, medium and hard folders, most of them have a main method which you can run to test it.
-
Modify the Program.cs to run the program, be sure to reference the folder
using leetcode_cs.easy;
Maximum69Number.main();Distributed under the MIT License. See LICENSE for more information.