758. Bold Words In String


  • 0

    Input: ["ccb","b","d","cba","dc"]
    "eeaadadadc"

    Output: "eeaadadadc"

    Expected: "eeaadadadc"

    Specifically for the last 2 characters of output/expected case: why isn't having dc in bold, also a valid combination?


Log in to reply
 

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.