Search⌘ K
AI Features

Index Pairs of a String

Explore how to find all index pairs in a string where substrings match any word from a list using a trie. Understand sorting of pairs and constraints while practicing an efficient string matching approach in coding interviews.

Statement

Given a string text and an array of strings words, return a list of all index pairs [i, ...