NeetCode #831LC-616MediumIntervalsNC Algo100
← Back to All Problems#831 · #616 · Add Bold Tag in String(给字符串添加加粗标签)
📌 Problem Statement & Constraints
You are given a string
s and a list of words. Wrap in <b> and </b> every substring of s that matches any word, merging overlapping or adjacent matches into a single bold region. Return the resulting string. Constraints: 1 <= s.length <= 1000, 0 <= words.length <= 100, 1 <= words[i].length <= s.length, s and words[i] consist of lowercase English letters.🔒
Sign In to Unlock Full Solutions for All 973 Problems
Sign in to access step-by-step logic, benchmark Python3 code, complexity breakdown, and offline export!