In this question ,I have problem in solving the example 2-5 given in the question.How to do it??
Leetcod string problem
Example 2:
Input:
num = “232”, target = 8 Output: [“23+2", "2+32”]
to get the output = 8 we can either do (23+2) or (2+32)
Example 3:
Input:
num = “105”, target = 5 Output: [“1*0+5”,“10-5”]
Example 4:
Input:
num =“00”, target = 0 Output: [“0+0”, “0-0”, “0*0”]
Example 5:
Input:
num = “3456237490”, target = 9191 Output: []
here we can’t get the target 9191 from “3456237490” so output is " "