Array
2942. Find Words Containing Character
Given a string array words and a character x, return the indices of all words containing x, in any order. Direct scan: for each word, check for x and add the index on a match.
Loading…
Given a string array words and a character x, return the indices of all words containing x, in any order. Direct scan: for each word, check for x and add the index on a match.
Loading…