Search⌘ K
AI Features

Index Pairs of a String

Understand how to identify all index pairs within a string where the substring appears in a given list of words. Explore the use of trie for efficient storage and prefix matching, and practice implementing this solution in a coding environment.

Statement

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