Problem link: https://www.hackerrank.com/challenges/digit-products
My solution: http://ideone.com/wXDPi3
I got a verdict of TLE. How can I optimize my code further? Any help is really appreciated.
Problem link: https://www.hackerrank.com/challenges/digit-products
My solution: http://ideone.com/wXDPi3
I got a verdict of TLE. How can I optimize my code further? Any help is really appreciated.