Hi ,
I have a question on bedbathandbeyond word breaking problem. From the 2nd test case expected output, the valid solution seems to be the minimum splits between words. I think “pp”, “pp”,“pppp” or “pppp”, “pp”, “pp” or even “ppp”,“pp”,“ppp” could also be correct. Is the problem needed to be solved with minimum breaks of words?
Test FAILED ( 2/42) [ 7 us]
domain: pppppppp
dictionary: [“pppp”, “ppp”, “pp”]
expected: [pppp, pppp]
result: [pppp, pp, pp]
Would be nice if the problem statement is clarified.
Thank you