Search⌘ K
AI Features

Longest Common Suffix Queries

Longest Common Suffix Queries matches each query string with a container string sharing its longest ending substring, breaking ties by shorter length and earlier position.

Statement

You are given two arrays of strings, wordsContainer and wordsQuery.

For each string ...