Click the Twitter icon to follow our tweets and
know more about us.

Question's

0
A neighborhood in Abbittobad had been raided by Marines in search of Osama. They land on different buildings from a helicopter. The roof tops of these buildings are connected to each other through a ladder. Each marine can control the buildings in straight lines (left-right and forward-backward) with respect to the building position they have been dropped on. They cannot control the diagonal buildings. There are 8 buildings in each row and column.
For this puzzle, your goal is to determine how many buildings in total are controlled by a group of marines.
Example-:
Input-: input 1=3
input2[][]={{2,3},{5,6},{4,1}}
Output-: 39 blocks