Skip to content

Leketo/leetcode-solutions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

LeetCode Solutions

This repository contains my solutions to LeetCode problems in JavaScript and Java.

Structure

The repository is organized as follows:

  • JavaScript/: Contains JavaScript solutions to LeetCode problems.
    • src/: Contains the source code files.
    • tests/: Contains the test files.
  • Java/: Contains Java solutions to LeetCode problems.
    • src/: Contains the source code files.
    • tests/: Contains the test files.

Getting Started

To run the JavaScript solutions:

  1. Make sure you have Node.js installed.
  2. Clone this repository: git clone https://github.com/your-username/leetcode-solutions.git
  3. Navigate to the JavaScript folder: cd leetcode-solutions/JavaScript
  4. Install dependencies: npm install
  5. Run the tests: npm test

To run the Java solutions:

  1. Make sure you have Java and JUnit installed.
  2. Clone this repository: git clone https://github.com/your-username/leetcode-solutions.git
  3. Navigate to the Java folder: cd leetcode-solutions/Java
  4. Compile the source files: javac -d out src/*.java
  5. Run the tests: java -cp out org.junit.runner.JUnitCore tests/*.java

Feel free to explore the solutions and test files to understand the implementation and test cases for each problem.

Contribution

If you have any suggestions or improvements for the solutions, feel free to submit a pull request. Contributions are always welcome!

About

LeetCode problem solutions implemented in JavaScript and Java

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published