Problem 2320. Pandigital number n°2 (Inspired by Project Euler 32)
Solution Stats
Problem Comments
-
1 Comment
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.
Solution Comments
-
1 Comment
Kind of tailored to the orders of magnitude approach of the test suite; complexity would have to increase significantly if you split the intervals say [10000 50000] instead of [1e4 1e5-1].
-
1 Comment
Everything is perfect in this code.
-
3 Comments
this is not really a general solution, perhaps you could add more complicated cases in the testsuite? for example pandigital_nb(2200,4000)==10, pandigital_nb(250,40000)==98, pandigital_nb(35327,43854637)==23030
I hesitated to add tests that I can't solve by myself.
I see, check solution 443089, that should be a general and relatively fast solution
Problem Recent Solvers44
Suggested Problems
-
5636 Solvers
-
Project Euler: Problem 5, Smallest multiple
991 Solvers
-
461 Solvers
-
318 Solvers
-
Convert given decimal number to binary number.
1537 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!