Subtract Product and Sum of Digits of a Large Number

Asked at Capital One · Coding & Leetcode-style Questions · Difficulty: Easy

Given a non-negative integer `num`, which may be very large and is therefore provided as a string, split it into decimal digits and compute:

Loading the problem…