algorithms.tutorialhorizon.com
Print all substrings of a given string | Algorithms
Given a string write an algorithm to print all the possible sub strings. Example: String input = "abcd"; Output: Possible sub strings – a , a b , a b c, a b c d, b , b c, b c d, c , c d, d,