72

GitHub - azdanov/php-interview-exercises: Some exercises to practice whiteboard...

 5 years ago
source link: https://github.com/azdanov/php-interview-exercises
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

README.md

PHP Interview Exercises · Build Status PRs Welcome GitHub license Exercise Count

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.

Install

  1. Clone this repository.
  2. Run composer install.

Usage

  1. Pick an exercise for example exercises/ReverseString and inside tests/ReverseString/ReverseStringTest.php delete static::markTestSkipped();.
  2. Run ./vendor/bin/phpunit or ./vendor/bin/phpunit-watcher watch to start tests.
  3. Write implementation.

This will allow you to write code and be sure that the solution is correct.

Suggested Path

Aside

Exercise Count

This Exercise Counter is made with Shields IO, Axios, GitHub GraphQL and Netlify Functions.

Contributing

Do you have an idea for an exercise or a better solution? Submit a PR!

License

MIT


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK