How it is possible For the substrings of the string "rum" there are seven: "r", "ru", "rum", "u", "um", "m", ""

Sponsored Links

For the subsets of the string "rum" there are eight: "r", "ru", "rum", "u", "um", "m", "rm", "".

So the only difference is "rm" in the second. I think I have created a program for the second one.