You are given a string and an array of strings. How to quickly check, if this string can be built by concatenating some of the strings in the array?
This is a theoretica
Inspired by @cnicutars answer:
Possible(array A, string s)
s
P
A
p
Possible(A with p removed, s with prefix p removed)