Book of programming problems

Contains advanced programming problems for schools, colleges and problem-hungry inidividuals

A 'motley' number is a number with different digits. Find the longest geometric series of motley numbers
Complexity (1-100): 45
A K-digit motley number (K≤10) is a number all decimal digits of which are different. Zero cannot be the first digit.

Write a program which, given a K, will find all the longest sequences of K-digit motley numbers such that each successive number is twice as large as preceding, Output the first numbers of all sequences. The program is allowed to execute no longer then 3 seconds.
Solution:Show/hide explanation | Solution.hs
There are no posts in this topic.

Post Reply

Book of programming problems is powered by UseBB 1 Forum Software | Contact Admin