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