Please help in debugging this code:

Initialise your variables, then ask again if you’re still getting WA :slight_smile:

I tried initializing all variables in the following code:

It is still showing WA in two subcases.

I feel that I have initialized all variables in the previous code also, some at the beginning, while some in between.
Maybe I could not understand what you meant, if so, please do tell…

Thanks! Consider the test input:

1 2
1 Like

I got it with your help now, Thanks to you!!

1 Like