Last Updated | | Ratings | | Unique User Downloads | | Download Rankings |
2022-01-10 (11 days ago) ![RSS 2.0 feed](/graphics/phpclasses/rss2.png) | | Not yet rated by the users | | Total: 18 | | All time: 10,494 This week: 43![Up](/graphics/phpclasses/up.png) |
|
Description | | Author |
This package implements several algorithms as Laravel services.
It provides a Laravel application with service classes to implement several types of algorithms to solve problems of various kinds.
Currently, it provides services that implement algorithms like:
- Barter market to calculate how many comic books you can trade for coins
- Convert a number from Integer to a string that represents that number in the Roman format
- Convert a number from Roman string to the Integer that represents that number in decimal
- Calculate the median of values from two arrays
- Check if a number is a palindrome by verifying if reverting the order of number digits, it would appear to be the same number
- Calculate the reverse of a number | |
![Picture of Busari Ridwan Picture of Busari Ridwan](/graphics/unknown.gif) |
|
Innovation award
![Innovation award](/graphics/phpclasses/innovation-award-logo.png) Nominee: 2x |
|
Details
Algorithm 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
|
Applications that use this package |
|
No pages of applications that use this class were specified.
If you know an application of this package, send a message to the author to add a link here.