I have a list of strings W, how to count the ways to split a string S into substrings in W?
I tried to solve this problem 104375H, but i have no idea about how solve this efficiently. I need some help.
Codeforces Round 1123 Solution Discussion