Company: Motive_26oct
Difficulty: medium
Check if Sum is Possible After Deleting a Digit Problem Description You are given three integers in the form of strings: firstnum , secondnum , and thirdnum . Your task is to check whether it is possible to erase at most one digit from firstnum , so that the resulting string contains at least one digit, has no leading zeros and the value of thirdnum is equal to the sum of the values of firstnum and secondnum . Return true if it's possible, otherwise return false . Note: All three strings are provided without leading zeros. Examples Example 1: Input: firstnum = "10534", secondnum = "67", thirdnum = "1120" Output: true Explanation: By erasing the 5th digit ('4') of firstnum , the result is "1053". Then, 1053 + 67 = 1120. So the answer is true . Example 2: Input: firstnum = "10000", secondnum = "67", thirdnum = "1120" Output: false Explanation: The only possible modified values of firstnum would be 10000 (nothing was deleted), 0000 (first digit was deleted, which is invalid due to leading