why is it showing wrong answer when I submit, even if in the run window the answer is correct? can anyone help if I am missing out on something
bcz for main test cases your logic is wrong ,try again after correcting your code , also please don’t post code here … as long challenge is going on .
are there other hidden test cases?? because for the given one the answer is right with the same inputs in run window.
yes for hidden cases.