← Questions

Valid word abbreviation: match a word against an abbreviation

0
MetaCodingLast asked Sep 2026

A word can be shortened by replacing some non-empty, non-adjacent substrings with their lengths, so internationalization may become i18n or i5a11o1. Given a word and an abbreviation, return whether the abbreviation matches the word.

Sign in to unlock this question

The full prompt, the worked answer and your own canvas or code with the AI tutor. New accounts get 3 credits: each one unlocks a question for good.

Your code and the AI tutor open when you unlock this question.