Cody

# Problem 2320. Pandigital number n°2 (Inspired by Project Euler 32)

Solution 443006

Submitted on 15 May 2014 by James
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

### Test Suite

Test Status Code Input and Output
1   Pass
%% xl = 1; xu = 10 y_correct = 1; assert(isequal(pandigital_nb(xl,xu),y_correct))

xu = 10 l1 = 1 h1 = 2 ans = 1

2   Pass
%% xl = 10; xu = 99; y_correct = 2; assert(isequal(pandigital_nb(xl,xu),y_correct))

l1 = 2 h1 = 2 ans = 2

3   Pass
%% xl = 100; xu = 999; y_correct = 6; assert(isequal(pandigital_nb(xl,xu),y_correct))

l1 = 3 h1 = 3 ans = 6

4   Pass
%% xl = 1000; xu = 9999; y_correct = 24; assert(isequal(pandigital_nb(xl,xu),y_correct))

l1 = 4 h1 = 4 ans = 24

5   Pass
%% xl = 10000; xu = 99999; y_correct = 120; assert(isequal(pandigital_nb(xl,xu),y_correct))

l1 = 5 h1 = 5 ans = 120

6   Pass
%% xl = 1; xu = 999; y_correct = 9; assert(isequal(pandigital_nb(xl,xu),y_correct))

l1 = 1 h1 = 3 ans = 9

7   Pass
%% xl = 1; xu = 9999; y_correct = 33; assert(isequal(pandigital_nb(xl,xu),y_correct))

l1 = 1 h1 = 4 ans = 33

8   Pass
%% xl = 100000; xu = 999999; y_correct = 720; assert(isequal(pandigital_nb(xl,xu),y_correct))

l1 = 6 h1 = 6 ans = 720