My code is giving wrong answer for 2nd test case. Any insights?
Problem link: https://hack.codingblocks.com/contests/c/782/938
My solution link: https://ide.codingblocks.com/s/72840
My code is giving wrong answer for 2nd test case. Any insights?
Problem link: https://hack.codingblocks.com/contests/c/782/938
My solution link: https://ide.codingblocks.com/s/72840
Hi
Just change maxi to 100005
this because q can be greater than maxi in that case it will give garbage value.
Hit like if you get it!
Cheers!
@tusharsk @chwanshu27 I’m not getting ur solution can you please send me the total solution today is the last submission so fast ?