php-interview-exercises

Some exercises to practice whiteboard interview questions in PHP.

  • 所有者: azdanov/php-interview-exercises
  • 平台:
  • 許可證: MIT License
  • 分類:
  • 主題:
  • 喜歡:
    0
      比較:

Github星跟蹤圖

PHP Interview Exercises · Build Status PRs Welcome Exercise Count All Contributors

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.

Problem Solving Patterns

To solve certain problems in the most efficient way many algorithmic patterns are available.
Such as:

  • Frequency Counter
  • Multiple Pointers
  • Sliding Window
  • Divide and Conquer
  • Backtracking

And more...

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!

Contributors

Thanks goes to these wonderful people (emoji key):

This project follows the all-contributors specification. Contributions of any kind welcome!

License

MIT

主要指標

概覽
名稱與所有者azdanov/php-interview-exercises
主編程語言PHP
編程語言PHP (語言數: 1)
平台
許可證MIT License
所有者活动
創建於2019-04-07 19:07:16
推送於2025-07-11 08:03:39
最后一次提交2020-06-15 11:51:20
發布數0
用户参与
星數462
關注者數12
派生數75
提交數210
已啟用問題?
問題數7
打開的問題數4
拉請求數100
打開的拉請求數9
關閉的拉請求數3
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?