Available question text
Given a string s and a list of words, wrap every substring of s that matches any word with ... , merging overlapping or adjacent matches so tags are not nested or duplicated. The core challenge is to efficiently locate all matching intervals and merge them before reconstructing the final tagged string.
Related questions
Continue with questions that share topics or the same question type.
- Add Drama to String
Coding
- Bold Words in String
Coding
- A Graph question, a string question, a couple of array questions.
Coding
- Add Binary
Coding · Bit Manipulation · Math · Simulation
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
No company association
Leetcode 616. Add Bold Tag in String
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source