Login   Register  
PHP Classes
elePHPant
Icontem

File: Example

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Martin Lacroix  >  Calculus  >  Example  >  Download  
File: Example
Role: Example script
Content type: text/plain
Description: How to use
Class: Calculus
Calculate the count of numbers with unique digits
Author: By
Last change:
Date: 2011-05-16 14:18
Size: 477 bytes
 

Contents

Class file image Download
<?php
$a 
Calculus::nbOfNumbersWithUniqueDigits(465999);       # Expected   388
$b Calculus::nbOfNumbersWithUniqueDigits(100770);       # Expected   488
$c Calculus::nbOfNumbersWithUniqueDigits(699705);       # Expected     5
$d Calculus::nbOfNumbersWithUniqueDigits(245600322800); # Expected 13140
$e Calculus::nbOfNumbersWithUniqueDigits(0100FALSE);  # Expected    91
$f Calculus::nbOfNumbersWithUniqueDigits(0100TRUE);   # Expected    72
?>