Math
3756. Concatenate Non-Zero Digits and Multiply by Sum II
Given a digit string s of length m and queries queries[i]=[l,r]. For each query, take the substring s[l..r], concatenate all its NON-zero digits in order into a number x (if none, x=0), compute sum =…
Loading…