String Abbreviation Matching

Asked at Meta · Coding Questions · Difficulty: Medium · Last asked Oct 15, 2026

Given two strings, determine if the first string is an abbreviation of the second string. An abbreviation is defined as replacing any non-empty substring of the string with a number, which represents the length of that substring. For example, 'i18n' is an abbreviation of 'internationalization'.

Loading the problem…