Help in a string question.

Revision en2, by K_B_C_S, 2018-07-25 12:10:09

Check if a master string contains all the strings given in a list. Also, strings should not overlap.

example:

1) "indiaismycountry" is a master string which contains all strings {"is", "country, india"}.

2) "animal" is a master string which doesn't contains {"an", "animal"}.

This question not form any running contest. I is asked in a interview.

Any solution or useful link will be helpful.

Thanks in advance!

Tags #strings, #help, #interview

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English K_B_C_S 2018-07-25 12:10:09 6
en1 English K_B_C_S 2018-07-25 12:09:41 450 Initial revision (published)