1281. Subtract the Product and Sum of Digits of an Integer
https://leetcode.com/problems/subtract-the-product-and-sum-of-digits-of-an-integer
Description
Given an integer number n
, return the difference between the product of its digits and the sum of its digits. Example 1:
Example 2:
Constraints:
1 <= n <= 10^5
ac
Previous1280. Students and ExaminationsNext1282. Group the People Given the Group Size They Belong To
Last updated