[MS]All combination of a string

Write a code to find r-combination of a String of length n.
Ex: for String "abcd" 
Combinations are: 
""      "a"  "b"   "ab"  "c"   "ac"   "bc"   "abc"   "d"  "ad"  "bd"    "abd"   "cd"   "acd"   "bcd"   "abcd" 

Comments

Popular posts from this blog