Problems > The King's Options > Editorial

The King's Options — Solution & Editorial

Back to the Problem

The reachable block is (rows available) × (columns available) minus the king's own square — corners give 3, edges 5, interior 8.

Complexity: O(1)