Coding

Valid Word Abbreviation

Determine if a string matches a valid word abbreviation.

Input: word = "apple", abbr = "a2e"

Output: FALSE

Explanation: The abbreviation claims exactly 2 characters are skipped between 'a' and 'e', but "ppl" is actually 3 characters long.

Was asked at

Practice this question with AI

First session is free - no credit card required.

Go Premium

More interviews, more skills, more success.

No answers yet

Be the first to share your approach to this question

Practice More Questions

1 answer published. Last candidate submission on May 7 2026, 11:55pm PDT. Interview question asked to Software Engineers interviewing at Superhuman, Decathlon, LogicMonitor and other companies. Original question asked: Valid Word Abbreviation. Question last reported by a candidate interviewing at Amphenol for a Software Engineer interview on Jun 11 2026, 2:07am PDT.