Identifying the Minimal Square Pattern Transformation Method
Given two n x n grids composed of @ and -, determine the minimal transformation—from a predefined set—that converts the initial grid into the target grid. If multiple transformations apply, select the one with the smallest index. Allowed Transformations Clockwise 90° rotation Clockwise 180° rotation...