首页 > 其他 > 详细

[LeetCode] Generalized Abbreviation 通用简写

时间:2016-03-10 14:45:37      阅读:166      评论:0      收藏:0      [点我收藏+]

 

Write a function to generate the generalized abbreviations of a word.

Example:

Given word = "word", return the following list (order does not matter):

["word", "1ord", "w1rd", "wo1d", "wor1", "2rd", "w2d", "wo2", "1o1d", "1or1", "w1r1", "1o2", "2r1", "3d", "w3", "4"]

 

 

s

 

[LeetCode] Generalized Abbreviation 通用简写

原文:http://www.cnblogs.com/grandyang/p/5261569.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!