Your Dashboard
Interview Coaching
Learn
System Design
ML System Design
Code
Behavioral
Salary Negotiation
Interview Guides
Search
⌘K
Get Premium
Leetcode 758. Bold Words in String
Given a list of words and a string, wrap every substring that matches any word with <b>...</b>, ensuring overlapping or adjacent matches are merged into single bold spans. The core challenge is finding all (possibly overlapping) occurrences and combining their intervals correctly before inserting tags.
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
All Regions
Comments
Hello Interview Premium
Your account is free and you can post anonymously if you choose.