527. Word Abbreviation
2018-06-12 本文已影响0人
Nancyberry
https://leetcode.com/problems/word-abbreviation/description/
Two words are only eligible to have the same abbreviation if they have the same first letter, last letter, and length
. Let's group each word based on these properties
, and then sort out the conflicts.