#include <stdio.h>
#include <string.h>
char max(char a[], int l, int r);
int main(void)
{
char *s = "TINYEXAMPLE" ;
char ret = 0;
ret = max(s, 0, strlen(s)-1);
getchar();
return 0;
}
char max(char a[], int l, int r)
{
char u, v, t;
int m = (l+r)/2;
if (l == r)
{
big_function();
return a[l];
}
u = max(a, l, m);
v = max(a, m+1, r);
if (u > v)
{
big_function();
return u;
}
else
{
big_function();
return v;
}
}
#include <stdio.h>
#include <string.h>
char max(char a[], int l, int r);
int main(void)
{
char *s = "TINYEXAMPLE" ;
char ret = 0;
ret = max(s, 0, strlen(s)-1);
getchar();
return 0;
}
char max(char a[], int l, int r)
{
char u, v, t;
int m = (l+r)/2;
if (l == r)
{
t = a[l];
goto END;
}
u = max(a, l, m);
v = max(a, m+1, r);
if (u > v)
{
t = u;
goto END;
}
else
{
t = v;
goto END;
}
END:
big_function();
return t;
}