public static int f (int []a, int []b,int []c)
{
final int N=a.length;
int j, k=0, g=0, t=0 ;
for(int i=0;i<N;i++)
{
for (j=0;j<N;j++)
if (b[j]==a[i])
break;
if (j==N)
{
c[t]=a[i];
if (g==0 || c[t]>k)
{
k=c[t];
g=1;
}
t++;
}
}
return k;
kbondarchuk 0 Newbie Poster
kbondarchuk 0 Newbie Poster
NP-complete 42 Junior Poster
Lucaci Andrew 140 Za s|n
kbondarchuk 0 Newbie Poster
subramanya.vl 0 Junior Poster in Training
jalpesh_007 -3 Newbie Poster
Lucaci Andrew 140 Za s|n
JamesCherrill 4,733 Most Valuable Poster Team Colleague Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.