Concatenate Non-Zero Digits and Multiply by Sum II

Solution Code
Verifying access...

Time Complexity

O(n + m)

Space Complexity

O(n)