Created
July 24, 2021 17:55
-
-
Save code-reaper08/2829421b96383fa3546d3c11dbc7680f to your computer and use it in GitHub Desktop.
Final
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let inpstring = "abc"; | |
let n = inpstring.length; | |
function FindSubstring(Str, n){ | |
for(let i=0; i<n ;i++){ | |
/* console.log(i) */ | |
for(let j=i;j<n;j++){ | |
for(let k=i;k<j+1;k++){ | |
console.log(Str.charAt(k)) | |
} | |
} | |
} | |
} | |
FindSubstring(inpstring,n) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment