Can anybody tells me the logic to find all the possible meaningful sub-string from a string for example let my string be "abhishek" then the possible sub-strings from "abhishek" are "hi", "his", "she" & "he" where each one them has some meaning associated. Is there any way to find these sub-strings with least time complexity? Is there any way to solve this problem by dynamic programing?
Note : We can maintained a dictionary for references using any data structure as per our convenience.
I am adding some more examples
0 Answer(s)