you give integer array num integer targetyou want build expression num add symbol integer num concatenate integersfor example num 2 1 add 2 1 concatenate build expression 21return number different expression build evaluate target Example 1input num 11111 target 3output 5explanation there 5 way assign symbol sum num target 31 1 1 1 1 31 1 1 1 1 31 1 1 1 1 31 1 1 1 1 31 1 1 1 1 3example 2input num 1 target 1output 1 Constraints1 numslength 200 numsi 10000 sumnumsi 10001000 target 1000