<?php
$a = Calculus::nbOfNumbersWithUniqueDigits(465, 999); # Expected 388
$b = Calculus::nbOfNumbersWithUniqueDigits(100, 770); # Expected 488
$c = Calculus::nbOfNumbersWithUniqueDigits(699, 705); # Expected 5
$d = Calculus::nbOfNumbersWithUniqueDigits(245600, 322800); # Expected 13140
$e = Calculus::nbOfNumbersWithUniqueDigits(0, 100, FALSE); # Expected 91
$f = Calculus::nbOfNumbersWithUniqueDigits(0, 100, TRUE); # Expected 72
?>
|