Stars: 441
Forks: 70
Pull Requests: 110
Issues: 7
Watchers: 14
Last Updated: 2023-09-12 16:50:34
Some exercises to practice whiteboard interview questions in PHP.
License: MIT License
Languages: PHP
[NO LONGER MAINTAINED]: The exercises should still be useful when preparing for a PHP interview, but I'm not able to maintain the repository.
A number of exercises to practice whiteboard interview questions in PHP.
Inside exercises
directory, you can find folders containing the exercises and completed versions.
There are multiple ways to solve each problem, feel free to experiment.
If you are stuck don't be afraid to search online for a pseudo-code algorithm or a solution. Even by copying and later analyzing the solution you will gain lots of experience in problem solving.
Also check out the tests and see what results are expected. Playing around with Xdebug is a plus.
It is useful to actually see how algorithms manipulate data. Visualgo is a good resource for that.
composer install
.exercises/ReverseString
and inside tests/ReverseString/ReverseStringTest.php
delete static::markTestSkipped();
../vendor/bin/phpunit
or ./vendor/bin/phpunit-watcher watch
to start tests.This will allow you to write code and be sure that the solution is correct.
To solve certain problems in the most efficient way many algorithmic patterns are available. Such as:
And more...
This Exercise Counter is made with Shields IO, Axios, GitHub GraphQL and Netlify Functions.
Do you have an idea for an exercise or a better solution? Submit a PR!
Thanks goes to these wonderful people (emoji key):
Anton Ždanov 💻 📖 |
ahmed 💻 |
Roman Yepanchenko 🐛 |
Fathom 🐛 💻 |
Alexander Katynia 🐛 |
kevin-schmitt 💻 |
This project follows the all-contributors specification. Contributions of any kind welcome!