[HackerRank] Digit Products - Solution

最近实在没什么可写的,只好写个题解来水一下。

Description

Link: Click me!

We define a function D(x) which equals to the digit products of an integer of base 10.

For example:

D(0) == 0
D(123) == 1 * 2 * 3 == 6
D(234) == 2 * 3 * 4 == 24
D(104) == 1 * 0 * 4 == 0

Given the range …

more ...