โ† IBM questions

Find word in vector of strings

Filed under IBM

Given a list of strings and a target word, return the index of the first occurrence of the word, or -1 if not found.

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 IBM questions

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