https://github.com/piratecoderz/leetcode-problems-java
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.
https://github.com/piratecoderz/leetcode-problems-java
Last synced: 20 days ago
JSON representation
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.
- Host: GitHub
- URL: https://github.com/piratecoderz/leetcode-problems-java
- Owner: PirateCoderz
- License: other
- Created: 2024-11-10T11:59:42.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-11T08:49:14.000Z (over 1 year ago)
- Last Synced: 2025-03-05T02:20:33.958Z (over 1 year ago)
- Language: Java
- Size: 17.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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 |
| [Jewels and Stones](https://leetcode.com/problems/jewels-and-stones/) | [Jewels and Stones](https://leetcode.com/submissions/detail/1258744687/) |
| **02** | 520 |
| [Detect Capital](https://leetcode.com/problems/detect-capital/) | [Detect Capital](https://leetcode.com/submissions/detail/1258719995/) |
Easy Problems
| **S#** | **Question#** | **Difficulty** | **Questions** | **Solutions** |
| :----: | :-----------: | :----------------------------------------------------------------------: | :-------------------------------------------------------------------------------------------------------------------------------------------: | :----------------------------------------------------------------------------------------------------: |
| **01** | 771 |
| [Jewels and Stones](https://leetcode.com/problems/jewels-and-stones/) | [Jewels and Stones](https://leetcode.com/submissions/detail/1258744687/) |
| **02** | 520 |
| [Detect Capital](https://leetcode.com/problems/detect-capital/) | [Detect Capital](https://leetcode.com/submissions/detail/1258719995/) |
## 📁 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:
```bash
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:
```bash
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**