Given two strings a and b, find whether any anagram of string a is a sub-string of string b
if a = xyz and b = afdgzyxksldfm then the program should return true.
class StringDemo3
{
static boolean checkAnagram(String s1,String s2)
{
int mycount[]=new int[128];
for (int i=0;i
No comments:
Post a Comment