登录
注册
写文章
首页
下载APP
会员
IT技术
Unique Word Abbreviation
98Future
关注
赞赏支持
Unique Word Abbreviation
这题感觉挺简单的。。就是把dict每个单词的缩写先求出来,用一个HashSet表示。
比如<abbrev>
isUnique就是把word -->abbrev 以后去看看map里有没有过。
最后编辑于 :
2017.11.29 10:33:21
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。
推荐阅读
更多精彩内容
288. Unique Word Abbreviation
An abbreviation of a word follows the form . Below are so...
我是你的果果呀
阅读 277
评论 0
赞 0
288. Unique Word Abbreviation
An abbreviation of a word follows the form . Below are so...
我是你的果果呀
阅读 178
评论 0
赞 0
Leetcode - Unique Word Abbreviation
My code: 一开始想复杂了。。今晚很累。不多说了。 Anyway, Good luck, Richardo!...
Richardo92
阅读 829
评论 0
赞 0
288. Unique Word Abbreviation
An abbreviation of a word follows the form <first letter>...
matrxyz
阅读 281
评论 0
赞 0
288. Unique Word Abbreviation
An abbreviation of a word follows the form <first letter>...
Jeanz
阅读 344
评论 0
赞 0
赞
1赞
赞赏
手机看全文