Skip to content

Latest commit

 

History

History
26 lines (15 loc) · 665 Bytes

README.md

File metadata and controls

26 lines (15 loc) · 665 Bytes

Class Overview

This is a class that builds and outputs all possible sums given currency denominations where each denomination equals an arbitrary sum

Build and run procedures

Download this repository via Git and run composer on the package.

Below is a code sample displaying how to run this challenge... this can also be found in src/test_output.php

include('Challenge.php');
$challenge = new Challenge();
//build_possibilities with default values
$challenge->build_possibilities();

$challenge->change_currency("Coin,1.5,Arrowhead,3,Button,150");
$challenge->build_possibilities();

Tests

Run /vendor/bin/phpunit to run the PHPunit tests