Ans.: This is a very frequent interview question. Here we need to form all the possible substrings from input string, varying from length 1 to the input string length. The output will include the input string also.
- input: abcd , output : a ab abc abcd b bc bcd c cd d
No comments:
Post a Comment