← Questions

Minimal unique word abbreviations

0
AppleCodingLast asked Jun 2026

A coding interview question asked in Apple's coding round, last asked Jun 2026. It tests strings, tries and sorting.

Given a list of distinct words, give each word the shortest abbreviation that no other word in the list shares. An abbreviation of a word keeps a prefix, then the number of letters skipped, then the last letter: internal with a one-letter…

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 5 credits: each one unlocks a question for good.

Where it's asked

  • Apple · Coding · Last asked Jun 2026

What it tests

strings · tries · sorting

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