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.
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.) -
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