282. Expression Add Operators
problem description
Input: num = "123", target = 6
Output: ["1+2+3", "1*2*3"]Input: num = "232", target = 8
Output: ["2*3+2", "2+3*2"]Input: num = "105", target = 5
Output: ["1*0+5","10-5"]Input: num = "00", target = 0
Output: ["0+0", "0-0", "0*0"]Input: num = "3456237490", target = 9191
Output: []algorithm thought
code
algorithm analysis
Last updated