Leetcode 1281. Subtract the Product and Sum of Digits of an Integer
Given a positive integer n, compute and return (product of its decimal digits) − (sum of its decimal digits). This is a simple digit-extraction problem solvable in linear time in the number of digits with constant extra space.
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
Your account is free and you can post anonymously if you choose.