My code https://ide.codingblocks.com/s/73197 is not passing the test cases. Can you please explain where it is going wrong ?
In the sample test cases, there can be two possible correct outputs (due to the alternating zeros and ones). My code gives the other output than that mentioned in there. I hope that isn’t causing any problems ?