You are given two strings, str1 of length n and str2 of length m.
A string word of length i from
If str1[i] == 'T', the substring of length m starting at index i, word[i .. i + m - 1], is equal to str2.
If str1[i] == 'F', the substring of length m starting at index i, word[i .. i + m - 1], is not equal to str2.
Return the lexicographically smallest string word that can be generated. If no such string satisfies the conditions, return an empty string "".
Constraints:
str1.length
str2.length
str1 consists only of 'T' and 'F'.
str2 consists only of lowercase English letters.
You are given two strings, str1 of length n and str2 of length m.
A string word of length i from
If str1[i] == 'T', the substring of length m starting at index i, word[i .. i + m - 1], is equal to str2.
If str1[i] == 'F', the substring of length m starting at index i, word[i .. i + m - 1], is not equal to str2.
Return the lexicographically smallest string word that can be generated. If no such string satisfies the conditions, return an empty string "".
Constraints:
str1.length
str2.length
str1 consists only of 'T' and 'F'.
str2 consists only of lowercase English letters.