Math
3754. Concatenate Non-Zero Digits and Multiply by Sum I
Given an integer n. Form a new number x by writing out all the non-zero digits of n in their original order. If there are no non-zero digits, x = 0. Let sum be the digit sum of x. Return x · sum.
Loading…