iron_nicko's blog

By iron_nicko, history, 15 months ago, In English

Question :

Find the minimum amount of Prefix-Strings
needed to make string B from the given list of strings A.

Input :

4
abc ka efgh k
efghkabc

Output: 3

Constraints:

1 <= N <= 100
1 <= |A| <= 100
1 <= |A[i]| <= 100
1 <= |B| <= 100
My Code
  • Vote: I like it
  • 0
  • Vote: I do not like it