SarthakKeshari / Java-Questions-and-Solutions

This repository aims to solve and create new problems from different spheres of coding. A path to help students to get access to solutions and discuss their doubts.
MIT License
47 stars 98 forks source link

All substring of a given string in java #427

Closed lobachaos closed 3 years ago

lobachaos commented 3 years ago

Enter your question -

Q. Print all substring of a given string in java?

Condition -

Print the substring only when the characters in the substring are strictly in increasing ASCII order. Print the output in sorted decreasing order using inbuilt functions only. There should not be any repeated substring.

Remember -

ASCII values of each character needs to be considered.

input = abc output = a, ab, abc, b, bc, c

input = cab output = a, ab, b, c

input = aBc output = B, Bc, a, c Kindly note - aB and aBc are not considered.

input = !ab!c output = !, !a, !ab, !c, a, ab, b, c Kindly note - !ab!, ab!c, etc. are not considered.

Enter link to the question(if question belongs to any online platform) -

NA

Tags for the question(eg - Array, Basic, Stack, etc.) -

String Handling

lobachaos commented 3 years ago

@SarthakKeshari , the updated issue .

SarthakKeshari commented 3 years ago

@lobachaos, I have assigned it to you in one of the previous issues right. Just solve it under that id only. You may close this one