Home > Back-end >  A substring of string is a continuous partial of the string. If they don't require continuous,
A substring of string is a continuous partial of the string. If they don't require continuous,

Time:09-22

The inline Max (int a, int b)
{
Return a> b? A: b;
}

Int f (char * x, char * y)
{
If (strlen (x)==0) return 0;
If (strlen (y)==0) return 0;

If (*==x * y) return f (x + 1, y + 1) + 1;

The return of Max (______________________);
}

Int main ()
{
Printf (" % d \ n ", f (" ac ", "abcd"));//2
Printf (" % d \ n ", f (" acebbcde1133 ", "xya33bc11de"));//5
return 0;
}

CodePudding user response:

Math. Max (f (x, y1), f (x1, y))
  • Related