stringnorm(conststring &w){ if (w.length() < 3) return w; stringres(1, w[0]); res += to_string(w.length() - 2); res += w.back(); return res; }
unordered_map<string, string> m; };
/** * Your ValidWordAbbr object will be instantiated and called as such: * ValidWordAbbr* obj = new ValidWordAbbr(dictionary); * bool param_1 = obj->isUnique(word); */