Search⌘ K
AI Features

Index Pairs of a String

Understand how to identify all index pairs in a string that correspond to substrings from a given word list. Explore using trie data structures to efficiently store words and perform prefix searches, then return sorted index pairs based on the problem constraints.

Statement

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