[LeetCode] Generalized Abbreviation 通用简写

Posted Grandyang

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了[LeetCode] Generalized Abbreviation 通用简写相关的知识,希望对你有一定的参考价值。

 

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 通用简写的主要内容,如果未能解决你的问题,请参考以下文章

Leetcode 320: Generalized Abbreviation

320. Generalized Abbreviation-- back tracking

[Locked] Generalized Abbreviation

Generalized Abbreviation

320. Generalized Abbreviation

320. Generalized Abbreviation