0758. Bold Words in String
Description
**Input:** words = ["ab","bc"], s = "aabcd"
**Output:** "a<b>abc</b>d"
**Explanation:** Note that returning "a<b>a<b>b</b>c</b>d" would use more tags, so it is incorrect.**Input:** words = ["ab","cb"], s = "aabcd"
**Output:** "a<b>ab</b>cd"ac
Last updated