Doubt regarding subtasks

I am getting AC for the sub-task with larger constraints but getting WA for smaller constraints. I think that when larger constraints are solved the smaller must be obvious. Can anyone help me know what conclusions I can draw from this? Or why this is happening?
Annotation%202019-12-11%20094900 Annotation%202019-12-11%20095034

there may be some edge cases for smaller test cases in your algo

5 Likes

Thanks mate. That helped!:grinning:

1 Like

what was the edge case in that small constraint

but… that was 6 months ago

which question is this?

i bet even the op(original poster) also doesn’t remember, it is a post from Dec’19

lmaooo

Yes I remember not accounting for the edge case in that question. It was when N was 1!

:grin:

because i got the similar problem in ongoing cntst