Skip to content

This Repo is all about Leetcode Problems solved in Java Language. I Started from easy ones and each is numbered as _1_ProblemName. Hope it helped you alot.

License

Notifications You must be signed in to change notification settings

PirateCoderz/LeetCode-Problems-Java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

LeetCode Java Solutions

Welcome to my LeetCode Java repository! This collection of solutions is intended to tackle a wide range of algorithmic challenges on LeetCode, starting from easy-level problems to progressively harder ones. This journey is designed to improve my understanding of data structures, algorithms, and problem-solving techniques in Java.

🗂️ Repository Structure

Each solution is organized by problem difficulty and follows the LeetCode problem list order for easy navigation. The structure is as follows:

  • Easy: Beginner-level problems that cover basic concepts and help build foundational skills. These problems are aimed at honing basic programming logic, syntax, and understanding of fundamental data structures like arrays, strings, and hashmaps.

  • Medium and Hard: As I progress, these sections will be added, covering advanced topics like dynamic programming, backtracking, graph algorithms, and more. Solutions in these folders will be explained in detail to help solidify understanding.

LeetCode Solution Tracker

String

S# Question# Difficulty Questions Solutions
01 771 Easy Jewels and Stones Jewels and Stones
02 520 Medium Detect Capital Detect Capital

Easy Problems

S# Question# Difficulty Questions Solutions
01 771 Easy Jewels and Stones Jewels and Stones
02 520 Easy Detect Capital Detect Capital

📁 Folder Structure

Each problem solution is saved in its respective folder, named after the problem title with its difficulty level in the folder name. For example:

.
├── easy
│   ├── _1_TwoSum
│   └── _2_ReverseInteger
└── medium
    └── _1_AddTwoNumbers

Within each folder:

  • Problem.md: Contains the problem description, constraints, and sample inputs/outputs.
  • Solution.java: The Java file with a clean, commented solution.
  • Explanation.md: (Optional) A detailed explanation of the approach, complexities, and any alternative solutions if applicable.

🚀 Getting Started

To use this repository, clone it, navigate to the desired problem folder, and compile and run the Java solution files:

javac Solution.java
java Solution

Each solution is standalone, so you can run them individually to see how they work.

🛠️ Prerequisites

Ensure you have Java installed to compile and run the solutions:

java --version

✨ How to Contribute

If you'd like to contribute, feel free to fork this repository, work on a new solution or improve existing ones, and create a pull request. Your contributions are welcome!

📝 Admins

This repository is managed by:

  • Pirate Coderz (Owner) - Java Developer and Competitive Programmer
  • Pro Coder

About

This Repo is all about Leetcode Problems solved in Java Language. I Started from easy ones and each is numbered as _1_ProblemName. Hope it helped you alot.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages