GfG QA is closing soon... Please refer PRACTICE or GfG now on wards !!

Expressing a number as product of digits of another number which should be the smallest

Given an integer n. The task is to find number of digits of smallest possible integer x such that the product of its digits is equal to n. Program should return the number of digits in x amd return -1 if such a number does not exist
asked May 1, 2017 by anonymous