Valid Word Abbreviation

Given a string word and an abbreviation abbr, determine whether abbr is a valid abbreviation of word.

Letters in the abbreviation must match corresponding letters in order. A consecutive numb...

Example

Unlock to view complete problem details

and practice with sample input/output

Was this article helpful?

View Test Cases & Run Code requires membership

Standard Input
Execution Result: