How to Solve The Bad Neighbors Problem in TopCoder
Can anyone Suggest where my logic failed for this question, here is my solution which passed the example test cases, but when run the system test it gives the verdict as failed, Thank you.