Skip to content

Latest commit

 

History

History
34 lines (25 loc) · 976 Bytes

File metadata and controls

34 lines (25 loc) · 976 Bytes

LeetCode Solutions in Java

This repository contains my personal solutions to LeetCode problems. Each solution is implemented in Java and organized systematically by problem number and title.

📁 Repository Structure

The project follows a standardized naming convention for easy navigation: leetcode-solutions/[Problem Number].[Problem Title]/Solution.java

Example: leetcode-solutions/0001.Two Sum/Solution.java

🛠️ Usage

Each directory contains a standalone Solution.java file. To run these locally:

Clone the repository:

git clone https://github.com/your-username/your-repo-name.git

Navigate to the problem folder:

cd "leetcode-solutions/0001.Two Sum"

Compile (Note: You may need to add a main method for local testing):

javac Solution.java
📈 Goals

Provide clean, readable Java code. Focus on optimal Time and Space complexity.

Maintain a consistent commit history as I progress through the LeetCode catalog.