Aladdin is searching for the lamp and during his search, he comes across a door guard-
ed by a spirit. In order to get past the door, the spirit challenged Aladdin in a game of chess.
The chessboard being old is broken into 4 pieces each of size 3 by 3. Apart from that, some
squares are of the wrong colour with j-th square of the i-th row of k-th piece of the board has
colour ak,i,j . The spirit wants Aladdin to change the colour of some squares in such a way
that he recolours the minimum number of squares and the obtained pieces form a valid
chessboard. Every square has a different colour from each of the neighbouring side by side
squares in a valid board. Its size should be 6 by 6. Aladdin can move the pieces but he
cannot rotate and flip them.
Answers
Answered by
2
Answer:
good evening ji
how are you dear
hope you are fine
Answered by
3
excuse me I didn't ask you right
Similar questions