I want to know where i am making a mistake. The final test-case after submitting is showing wrong-answer.
Delhi's Odd Even Problem
There’s a slight mistake in your logic @hp_tony_21. You’re checking the odd/even parity of the sum of all digits, instead, you have to check it separately for even and odd digits.
For eg: if the carno is 12345, you have to check separate for 1+3+5 and 2+4.
But your code is checking for 1+2+3+4+5.
Hope this helps.
1 Like
It worked. I misunderstood the question. Thank you for correcting me 
Most welcome. I’d request you to mark the doubt as resolved if your query is solved.