Suppose you are given two strings like
String 1 = "ipsum"
String 2 = "Lorem ipsum is simply dummy text of the printing and typesetting industry. Lorem sipum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem pisum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem muips."
Challenge: Now you are suppose to search for the all the possible permutations of String 1 in String 2. You have to write the following program without using any string functions throughout the program.
The output of the program should print the possible permutation present in String 2.
Output for the following example:
ipsum sipum pisum muips
aaaa
inaaaab
, should it find it 24 times or just once? – mniip May 13 at 10:14