Given pair of coordinates of K rooks on an N X N chessboard, the task is to count the number of rooks that can attack… Read More
The post Count of rooks that can attack each other out of K rooks placed on a N*N chessboard appeared first on GeeksforGeeks.