1p3a_oj Question

Replace All Pattern Occurrences with a Single Character

SWE coding 0

Question Details

Given a string and an array of matching patterns, replace all occurrences of the Patterns in the string with a specified character and return the replaced string. Input: A string s. A strin

Full Details

🔒

Unlock all Snap questions

Full insider details, leaked discussions, and candidate experiences.

or every company, $100/year →

About This Question

This is a reported interview question from a snap interview for a swe role during the coding round.

It covers the following topics: Arrays, Strings .

Difficulty rating: 0