Computer Science, asked by navisamplaa123, 4 months ago

To check if certain pharase or character is not present bin a string we can use the keyword ​

Answers

Answered by rpvvipex912152
0

Answer:

strings, all of which are smaller in length than the big string. The task is to create an array of booleans, where each boolean represents whether the small string at that index in the array of small strings is contained in the big string.

Note : that you can’t use language-built-in string-matching methods.

Examples:

Input : bigString = “this is a big string”, smallStrings = [“this”, “yo”, “is”, “a”, “bigger”, “string”, “kappa”]

Output : [true, false, true, true, false, true, false]

Input : bigString = “Mary goes to the shopping center every week.”, smallStrings = [“to”, “Mary”, “centers”, “shop”, “shopping”, “string”, “kappa”]

Output : [true, true, false, true, true, false, false]

Similar questions