How to Solve The Bad Neighbors Problem in TopCoder

Revision en1, by Sla7er, 2015-09-13 15:56:45

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.

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English Sla7er 2015-09-13 15:56:45 347 Initial revision (published)