Tag: 48
-
LeetCode: 408 Valid Word Abbreviation
•
Given a non-empty string word and an abbreviation abbr, return whether the string matches the given abbreviation. A string abbr is a valid abbreviation of word if: It can contain numbers representing how many characters to skip. The numbers should not contain leading zeros. Example: Input: word = "internationalization", abbr…