I have a problem and I did solved it using simple loops. But the program have tight time bounds. Will I be able to get better time of execution using recursive call of some function??
long int calcMis(char *string,int i, int j,int len)
{
long int mis=0;
for(int k=0;k<len;k++)
{
if((mis+len-k)<=max)
return mis;
if(string[i+k]!=string[j+k])
mis++;
if(mis>max)
return -1;
}
return mis;
}