Please help me out with this, i have even tried changing the direction of flipping the zeros from right to left and by doing that the test case which was not passing earlier passed but some other test case failed
One test case not passing - 1 count
your code gives wrong answer for test case
1 0
0
answer should be
0
0
not
0
1
It was giving correct output in other compiler but I corrected it for this also but that one TC is still not passing and as i said when changing the direction of flipping the coins some other TCs fails but this one passes https://ide.codingblocks.com/s/330018
Sorry i think i shared the old code only, this is updated code.