• Stars
    star
    453
  • Rank 96,573 (Top 2 %)
  • Language
    PHP
  • License
    MIT License
  • Created over 5 years ago
  • Updated 4 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Some exercises to practice whiteboard interview questions in PHP.

PHP Interview Exercises · Build Status PRs Welcome All Contributors

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

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):

Anton Ždanov
Anton Ždanov

💻 📖 ⚠️
ahmed
ahmed

💻 ⚠️
Roman Yepanchenko
Roman Yepanchenko

🐛
Fathom
Fathom

🐛 💻
Alexander Katynia
Alexander Katynia

🐛
kevin-schmitt
kevin-schmitt

💻 ⚠️

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

License

MIT

More Repositories

1

pawa-task

A simple todo app in Spring, Vue.js, Docker and Heroku.
Vue
11
star
2

vue-quiz-generator

Generate a word search quiz.
JavaScript
4
star
3

tailwind-starter

Example of using Tailwind CSS with Webpack 4.
JavaScript
3
star
4

MoviesApp

A simple RESTful API using C#, ASP.NET Core 7, Dapper and PostgreSQL.
C#
3
star
5

globe-map

D3.js world map of meteorite impact sites.
JavaScript
3
star
6

voting-app-node

A voting app full stack project for freeCodeCamp
TypeScript
3
star
7

postgresql-katas

PostgreSQL Kata exercises
2
star
8

laravel-volunteer

Exploring Laravel by building a simple BREAD website. A simple Craigslist clone.
PHP
2
star
9

scatter-plot

D3.js Scatter plot made for FreeCodeCamp
JavaScript
1
star
10

images

Image to Base64 converter
Go
1
star
11

ea-ultimate

A website redesign
JavaScript
1
star
12

gallery-yii2

Social Gallery demo app made in Yii2
PHP
1
star
13

microblog

A blog made in Python with Flask.
Python
1
star
14

spring-fresh-ads

A classified ads site in Spring Boot
Java
1
star
15

dungeon-react

Dungeon Crawler - React
JavaScript
1
star
16

javascript-starter-kit

An example starter kit for modern javascript development
JavaScript
1
star
17

thespacebar

Trying out Symfony 4
HTML
1
star
18

haskell-card-validator

Validate a credit card number
Haskell
1
star
19

line-chart

D3.js GDP line chart made for FreeCodeCamp
JavaScript
1
star
20

react-table

A simple example of a react table with pagination and page size.
JavaScript
1
star
21

react-form

A simple example of a react form with validation.
JavaScript
1
star
22

force-graph

D3.js force graph showing bordering countries.
JavaScript
1
star
23

vue-chat

A Vue.js, Vuex and Firebase chat
JavaScript
1
star
24

barber-salon

Barber Salon fictional business template
CSS
1
star
25

laravel-animals

A small Laravel, Vue and Braintree shop.
PHP
1
star
26

LocalWeatherApp

Show local weather based on geolocation, for FreeCodeCamp
CSS
1
star
27

vscode-easy-coding-standard

EasyCodingStandard for Visual Studio Code
TypeScript
1
star
28

CS50

Problem sets from MOOC CS50
C
1
star
29

weather-react-native

Trying out React Native
JavaScript
1
star
30

azdanov-web

Anton Ždanov's personal website
MDX
1
star
31

design-sandbox

Playing around with Gridsome and Tailwind CSS
Vue
1
star
32

wordpress-first

Trying out WordPress with a Sage theme.
CSS
1
star
33

translations

An English - Estonian dictionary made with React and Netlify Functions.
TypeScript
1
star
34

heat-map

D3.js heat map for global surface temperature change.
JavaScript
1
star
35

tslint-eslint-crats

Using TSLint, ESLint and Prettier with Create React App - TypeScript
TypeScript
1
star