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 [xlower,xupper] (inclusive if it is not explicit enough).
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
Problem Comments
1 Comment
Solution Comments
Show comments
Loading...
Problem Recent Solvers67
Suggested Problems
-
20977 Solvers
-
Matrix indexing with two vectors of indices
774 Solvers
-
Get the length of a given vector
12891 Solvers
-
Rotate input square matrix 90 degrees CCW without rot90
679 Solvers
-
533 Solvers
More from this Author43
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
Instructions are incorrect. The instructions ask for pandigitals between the bounds, but at least the lower bound must be included to pass some of the tests.