This is a collection of solutions to various LeetCode problems made with Java. This repository organizes LeetCode problems by difficulty: easy, medium, and hard. Each problem contains a single .java file with a main method that can be compiled and executed individually.
- Git
- Java SDK 17+
- Clone the repository
git clone https://github.com/Angelmmc/leetcode-java.git- Navigate to the root folder
cd leetcode-java- Compile a program of your choice (output will go to bin/)
javac -d bin src/leetcode/easy/TwoSum.java- Run the program
java -cp bin leetcode.easy.TwoSumDistributed under the MIT License. See LICENSE for more information.