Hi,
I am a beginner, please help me find the complexity of the following code:
int lim=9;
int vis[200];
void rec(int x)
{
if(x==100) return;
if(vis[x]==1) return;
vis[x]=1;
for(int i=x;i<100;i++)
{
if(i-x > lim) break;
rec(i+1);
}
}
int main()
{
rec(0);
}
Thanks!