This repository contains different algorithm questions and solutions from hackerank, leetcode and some of Vanhack code test.
To run the algorithms, use the following steps as all will be through the laravels php artisan command
The following step will be taken to run the different algorithm classes in the repo.
- Clone the repository
- Run
composer install
- Run
php artisan
to see all the artisan commands - Pick the one that suites the algorithm topic you wanna run. The artisan commands is formed with the topic of the algorithm test.
#Barter Market
To run the barter market test on any combination of inputs, follow the steps below
php artisan barter-market:run
- Supply the combination of inputs
- Wait for the expected result
#Palindrome Numbers Run through the following steps below
-
php artisan palindrome-numbers:run
-
Supply the number to be checked
-
Wait for the output result
#Median of two sorted arrays
Run through the following steps
php artisan media-of-two-sorted-arrays:run
- supply the numbers as requested
- Wait for the calculated median
#Reverse Integer
php artisan reverse-integer:run
- Supply the integer to be reversed
- Wait for the expected result/output
#Integer to Roman
php artisan integer-to-roman:run
- Supply the integer to be converted to roman numeral
- Wait for the equivalent output
#Roman to Integer
php artisan roman-to-integer:run
- Supply the roman numerals to be converted to integer
- Wait for the equivalent output
#NB
Pull request are equally welcome as this is an open source repository