Why are we returning in every case? For example while building min segment tree
if(s<e)
return;
if(s==e)
{
tree[index]= a[s];
return; // why is this done?
}
Why are we returning in every case? For example while building min segment tree
if(s<e)
return;
if(s==e)
{
tree[index]= a[s];
return; // why is this done?
}
Got it, thank you