← Google questions
CodingMediumReported in a candidate post, Feb 2025

Match a string in an array

Filed under Google

Given an array of strings `words` and a target string `target`, return all 0-based indices where `target` matches a string in `words`. If exact match or prefix/substring matching depends on…

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Google questions

Collected from public candidate posts and coding forums. Updated Nov 2026.