美文网首页
320. Generalized Abbreviation

320. Generalized Abbreviation

作者: 我是你的果果呀 | 来源:发表于2016-12-09 07:46 被阅读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"]

好赞的递归方式, 膜拜, 还要仔细看一遍!

相关文章

网友评论

      本文标题:320. Generalized Abbreviation

      本文链接:https://www.haomeiwen.com/subject/ielemttx.html