Given two strings A and B, the task is to find the shortest string which is some multiple of both A and B. A string… Read More
The post Shortest String formed by concatenating string A x times and B y times such that n(A)*x = n(B)*y appeared first on GeeksforGeeks.
0 Comments