Valid Word Abbreviation
["word", "1ord", "w1rd", "wo1d", "wor1", "2rd", "w2d", "wo2", "1o1d", "1or1", "w1r1", "1o2", "2r1", "3d", "w3", "4"]Given
s
= "internationalization",
abbr
= "i12iz4n":
Return true.Given
s
= "apple",
abbr
= "a2e":
Return false.Analysis
Solution
Reference
Last updated