I am getting WA for Test Set 2.
I looked at other people's solutions and also generated some random cases on both the correct and my solution, but both are giving the same answer.
Can anyone tell where I am getting it wrong?
I am getting WA for Test Set 2.
I looked at other people's solutions and also generated some random cases on both the correct and my solution, but both are giving the same answer.
Can anyone tell where I am getting it wrong?