I am facing problem when I used to solve problems of contest my code gets runs properly but when I submit it shows me wrong ??? How to solve these upcomming problem plz help me ??
Write your query properly without spamming Caps lock.
i had corrected yet sir.
If it shows you wrong answer then your logic for solution is incorrect.
my code seemed correct initially to me, but it gave WA again and again…
TURNED OUT THAT THE LOGIC WAS WRONG
Read the questions again a few times and then attempt again
Try to approach the problem with different logic or think about the testcases your current code is generating wrong answer