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.
-- 
Posted via http://www.ruby-forum.com/.