Search⌘ K
AI Features

Index Pairs of a String

Explore how to identify all index pairs in a string where substrings appear in a given list of words. Understand the application of tries for efficient prefix matching and learn to return results sorted by start and end indices.

Statement

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