N
Nanyang Zhan
Given any four letter word, for example: "card"
Replace one to three letters with "~",
How can I get the result collection ( ["~ard", "c~rd", ..., "~~r~",
"~~~d"])?
I know ruby, but I am bad at any algorithms, help please.
Replace one to three letters with "~",
How can I get the result collection ( ["~ard", "c~rd", ..., "~~r~",
"~~~d"])?
I know ruby, but I am bad at any algorithms, help please.