This post was flagged by the community and is temporarily hidden.
Will post its solution once test time gets over.
@ayanujju I couldn’t solve the ‘queries on expression’ problem. Were you able to solve both the problems? Will they only call those who have solved both?
can you post it now?
Yes. I don’t know what will be the eligibility criteria but as per the trend, it seems like they’ll be selecting only those candidates who solved both.
Sure. Here you go.
Pair(ll a, ll b)
: a(a), b(b)
bool operator<(const Pair& p1, const Pair& p2)
void fun(ll a,ll b,int n,ll k)