[LeetCode] Stamping The Sequence

1 · · March 31, 2021, 10:40 a.m.
936. Stamping The Sequence You want to form a target string of lowercase letters. At the beginning, your sequence is target.length ‘?’ marks. You also have a stamp of lowercase letters. On each turn, you may place the stamp over the sequence, and replace every letter in the sequence with the corresponding letter from the stamp. You can make up to 10 * target.length turns. For example, if the initial sequence is “?????”, and your stamp is “abc”, then you may make “abc??”, “?abc?”, “??abc” in ...