user124
BAN USER- 0of 0 votes
AnswersGiven a number N, now find the smallest number K such that product of digits of K is equal to N. If there is no such K then return -1.
- user124 in India
Suppose N = 100, then K = 455
N=26, K = -1| Report Duplicate | Flag | PURGE
Amazon Software Development Manager Algorithm Math & Computation
Repstephenroach41, Android Engineer at Alliance Global Servies
Experienced and professional facilities coordinator with a commitment to customer service. An analytical business person as well as a practiced ...
Repnetteyoder22, Applications Developer at 247quickbookshelp
Nette, transportation inspector inspects goods and equipment associated with transporting people or cargo to ensure safety. I typically work for ...
Reppfisterruiz, Accountant at 247quickbookshelp
Door-to-door is a canvassing technique that is generally used for sales, marketing, advertising, evangelism or campaigning, in which I walk ...
Reprmansummers, Accountant at Alcatel Lucent
I'm Rman! I graduated from the University of Arizona with a Bachelor's degree in Psychology and Education. I ...
int findM(int n)
- user124 February 17, 2014{
int m=0;
for(int i = 9; i >1 && n > 1; i--)
{
int temp = 1;
while(n > 1 && n%i == 0)
{
m = i*temp+m;
}
}
if(n == 1)
return m;
else
return -1
}