Solutions to coding puzzles from LeetCode, HackerRank, and Meta platforms.
This repository contains organized solutions to various coding problems, categorized by platform and difficulty level:
Puzzles/
├── LeetCode/
│ ├── Easy/
│ ├── Medium/
│ └── Hard/
├── HackerRank/
│ ├── Easy/
│ ├── Medium/
│ └── Hard/
└── Meta/
├── Lv1/
├── Lv2/
├── Lv3/
└── Lv4/
Each coding puzzle folder contains:
- Solution file: Implementation in Java, Python, or JavaScript.
- test_cases.txt: Test cases to validate the solution.
- Comprehensive documentation with:
- Problem description and link
- Algorithm explanation
- Time and space complexity analysis
- Detailed inline comments
- Multiple Languages: Solutions implemented in Java, Python, or JavaScript.
- Test-Driven: Each solution includes test cases for validation.
- Well-Documented: Detailed JavaDoc/docstring/JSDoc comments explaining approach.
- Complexity Analysis: Time and space complexity for each solution.
- Organized Structure: Problems categorized by platform and difficulty/level.
- Standard Compliant: Python code follows PEP-8 style guidelines with lowercase variable naming.
- Automated Testing: All solutions include test case reading functionality from test_cases.txt files.
To run any solution:
- Navigate to the specific problem folder with Puzzles as your source directory.
- Compile and run the solution file:
- Java:
javac FileName.java && java FileName - Python:
python FileName.py - JavaScript:
node FileName.js
- Java:
- The program will automatically read test cases from
test_cases.txt. - Results will be displayed for each test case.
- LeetCode: Algorithm and data structure problems (Easy, Medium, Hard).
- HackerRank: Programming challenges and contests (Easy, Medium, Hard).
- Meta: Coding interview puzzles organized by difficulty levels (Lv1-Lv4).
- LeetCode: 25+ problems across all difficulty levels
- HackerRank: 10+ problems across Easy and Medium levels
- Meta: 7 problems in Lv1 level
- Java: Primary language for LeetCode and HackerRank solutions
- Python: Used for Meta platform solutions (PEP-8 compliant) and some HackerRank problems
- JavaScript: Used for select LeetCode problems