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

(admin_choice) Adding AllSubstrings Solution on String Handling folder #437

Closed lobachaos closed 3 years ago

lobachaos commented 3 years ago

Issue Id you have worked upon -

257

Briefly explain your program logic -

Java already has a native method for substrings. So we just have to find substrings between every Iteration character using Nested Loop. Then verify te every character based on the ASCII order

Screenshots(Attach 2 screenshots of your own input and output) -

allsub1 allsub2


Checklist:

Eg - If your code follow the below guidelines. Kindly change [] to [x]

All the conditions should be fulfilled for considering your code for merging -