Skip to content

Solutions to various algorithm questions using laravel framework. To run these algoritms, you use the artisan commands and supply their various inputs as required

Notifications You must be signed in to change notification settings

rheedwahn/algorithm

Repository files navigation

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.

  1. Clone the repository
  2. Run composer install
  3. Run php artisan to see all the artisan commands
  4. 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

  1. php artisan barter-market:run
  2. Supply the combination of inputs
  3. Wait for the expected result

#Palindrome Numbers Run through the following steps below

  1. php artisan palindrome-numbers:run

  2. Supply the number to be checked

  3. Wait for the output result

#Median of two sorted arrays

Run through the following steps

  1. php artisan media-of-two-sorted-arrays:run
  2. supply the numbers as requested
  3. Wait for the calculated median

#Reverse Integer

  1. php artisan reverse-integer:run
  2. Supply the integer to be reversed
  3. Wait for the expected result/output

#Integer to Roman

  1. php artisan integer-to-roman:run
  2. Supply the integer to be converted to roman numeral
  3. Wait for the equivalent output

#Roman to Integer

  1. php artisan roman-to-integer:run
  2. Supply the roman numerals to be converted to integer
  3. Wait for the equivalent output

#NB

Pull request are equally welcome as this is an open source repository

About

Solutions to various algorithm questions using laravel framework. To run these algoritms, you use the artisan commands and supply their various inputs as required

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published