Hello i coppy pasted the code, i got the logic behind the approach but i’m still unclear with the below mentioned line i didn’t got why they have wrote min() function,
could you please explain me with some examples?
//This is in query function
return (p1*pow(2,min(en,r)-mid,mod)%mod+p2)%mod;