Algorithms playground for common questions solved in PHP syntax.
In case you want to prepare yourself for a job interview - try to solve it yourself first, then have a look here.
#How?
Simply run php some_file.php to execute the algorithm. At the bottom of each file there are some test samples.
example: php binary_search.php will print:
04-1.
It was inspired by ruby algorithms
Did you find a bug? any way to do it better? please feel free to pull-request it :)