Chess problem

Revision en1, by 420yoloswag69, 2015-08-11 17:37:24

Hi i need a bit of help !

Consider a chessboard of size NxN.

Your must find the maximum number of bishops that can be placed on the chessboard, such that no pair of bishops can attack each other. Some cells are damaged. Bishops cannot be placed on these cells, but they can attack through them. N<100

I can do a naive bruteforce but it keeps giving me timelimit. Any tip how to optimize it ?

Thanks!

Tags chess board

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English 420yoloswag69 2015-08-11 17:37:24 427 Initial revision (published)