Problem Description
A = "myinterviewtrainer", B = ["trainer", "my", "interview"]Input 2:
A = "a" B = ["aaa"]
1Output 2:
0
Return 1 ( corresponding to true ) because "myinterviewtrainer" can be segmented as "my interview trainer".
Explanation 2:
Return 0 ( corresponding to false ) because "a" cannot be segmented as "aaa".
NOTE: You only need to implement the given function. Do not read input, instead use the arguments to the function. Do not print the output, instead return values as specified. Still have a question? Checkout Sample Codes for more details.