Skip to content

JSalazarAlt/coding-problems

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Coding Puzzles

Solutions to coding puzzles from LeetCode, HackerRank, and Meta platforms.

Project Structure

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/

Solution Format

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

Features

  • 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.

Usage

To run any solution:

  1. Navigate to the specific problem folder with Puzzles as your source directory.
  2. Compile and run the solution file:
    • Java: javac FileName.java && java FileName
    • Python: python FileName.py
    • JavaScript: node FileName.js
  3. The program will automatically read test cases from test_cases.txt.
  4. Results will be displayed for each test case.

Platforms Covered

  • 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).

Problem Count

  • LeetCode: 25+ problems across all difficulty levels
  • HackerRank: 10+ problems across Easy and Medium levels
  • Meta: 7 problems in Lv1 level

Languages Used

  • 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

About

Solutions to a variety of coding problems from LeetCode, HackerRank, and Meta, focusing on algorithmic thinking, data structures, and space and time complexity analysis.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors