AbdulrahmanMasoud / leetcode-php

My PHP Solutions for leet code problems with different test cases

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

LeetCode in PHP πŸ˜ŠπŸ€“

My Solutions with Many different Test Caess Fully in PHP 😍

In this repository you can find my solutions for too many different leet code problems, I will frequently update it to add more solutions and test cases. πŸ‘ŒπŸš€

Acknowledgment βœ‹

Many of these solutions are inspired by some other's solutions and ideas, But fully implemented and tested By me ,So thanks to all Developers Who shares their ideas and solutions with others πŸ€πŸ™πŸ»

How To Use This List

  • Each problem has Three files Solution, Test, and Input.json Sorted by Category. πŸ“‚πŸ“‚πŸ“‚
  • Check The solution and Validate it per Category.β˜‘οΈβœ…
  • Check The input File for That Problem in Tests\Helper\InputFiles.πŸ§ͺπŸ”¦
  • Run the test file for that problem in Tests\{Category} Folder.βŒ›οΈπŸ€”
  • Add more Test Cases data into The input File following the Same existing format JSON πŸ₯ΈπŸ˜‰
  • Run The Test again to check the solution against your new test cases automatically β˜‘οΈβœ…πŸ™πŸ»

Contribute!!

You are very welcomed if You want to Contribute πŸ₯³ on that, And this is How :

  • Fork The Repo.πŸ“‚
  • Create Your new Solution in a Class with The existing Name + your Name. πŸš€
  • Create a Test Class for Your Solution.β˜‘οΈβœ…
  • Extend MainTest Class to load the data from your input file πŸ‘ŒπŸ‘Œ
  • Add/Copy a new Input file in Tests\Helper\InputFiles Exactly With Your Test Class Name Follow The same Format for Other files!. πŸ‘¨
  • Validate Your Solution From Time and Space Complexity.βŒ›οΈπŸ§ͺ
  • Create a PR against The Repo πŸ₯³
  • Let us discuss about your solution in your PR πŸ₯ŠπŸ₯ŠπŸ₯Š
  • Done !! You are a Contributor now 🍻

License

MIT

Free Software, Hell Yeah!

About

My PHP Solutions for leet code problems with different test cases

License:MIT License


Languages

Language:PHP 100.0%