Search⌘ K
AI Features

Index Pairs of a String

Index Pairs of a String asks you to find every pair of positions whose substring appears in a given text and word array, returning pairs sorted by starting index and then ending index.

Statement

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