PSHOT - DSA - Learners

I am getting WA can someone check which case am i missing
https://www.codechef.com/viewsolution/32027525

1 Like

you have errors in boundary conditions.
check this out CodeChef: Practical coding for everyone
(your inner most if and else conditions)