algorithms.tutorialhorizon.com

Print all sub sequences of a given String | Algorithms

Given a String write an algorithm to print all the possible sub subsequences. Example: String input = "abc"; Output: Possible sub sequences – {Empty}, {a}, {b}, {c}, {ab} ,{a,c}, {b, c}, {a, b, c}