</>OfferRetriever
DashboardDiscuss
NEW

Summer Sale

Limited Time Deal: Unlock all premium questions for over 30% off

$10.42$7.08

14

:

03

:

50

:

07

Get this deal
Back to Dashboard

Annotate First Pattern Match

Easy

Annotate First Pattern Match

You are given a string text containing words separated by spaces, and a list of patterns. For each word in text, find the first substring that matches any pattern (searching patterns in order). Wrap that substring in square brackets []. Only the first match per word is annotated. If no pattern matches a word, leave the word unchanged. ...

OfferRetriever

Master technical interviews with real questions from top companies. Build your confidence and career.

PRODUCT
PricingDashboardDiscussOfferRetriever vs LeetCode
LEGAL
POPULAR COMPANIES
GoogleMetaAmazonMicrosoftNetflixStripeUberTikTokBrowse all companies →

© 2026 Purple Business Holdings LLC. All rights reserved. See Terms of Service.