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

After Problem 2319.

An n-digit number is pandigital if it makes use of all the digits 1 to n exactly ONCE.

For example, the 5-digit number 15234, is 1 through 5 pandigital.

Find the number of pandigital numbers in a given interval (between xlower and xupper).

The test suite is simple here, but how to compute this number with BIG interval (pandigital number length > 7) in Cody time?

For example, between 58755 and 99899923?

Solution Stats

70.83% Correct | 29.17% Incorrect
Last solution submitted on Nov 16, 2016

Problem Comments

Solution Comments

Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!