DownloadAlgorithm Solutions
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
-
-
Supply the combination of inputs
-
Wait for the expected result
Palindrome Numbers
Run through the following steps below
-
-
Supply the number to be checked
-
Wait for the output result
Median of two sorted arrays
Run through the following steps
-
-
supply the numbers as requested
-
Wait for the calculated median
Reverse Integer
-
-
Supply the integer to be reversed
-
Wait for the expected result/output
Integer to Roman
-
-
Supply the integer to be converted to roman numeral
-
Wait for the equivalent output
Roman to Integer
-
-
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
|