wondering why this code wont work..
A bunch of conventions are coming to town, and you are a hotel
manager. The conventions are numbered from 1 through n.
Convention i ends at time i. You can't host more than
one convention at a time.You want to maximize the
*number* of conventions you host. (Assume they all present
the same profit.) If you host convention i, then any later
conventions you host must begin at time i+1 or greater.
publicstaticint maxConventions (int n,int [] Begin)
{
if(n<1)return 0;
elsereturn 1+maxConventions(n,Begin[n]-1)+ maxConventions(n-1,Begin);
}
ok im just stupid but its bringing back a error of The method maxConventions(int, int[]) in the type conventions is not applicable for the arguments (int, int) ... sorry for the stupidity but why is it doin this?

