Valkyrie TradingOA #1
Largest Black Subsquare Anchored at Top-Left
估计简单评测数据准备中,可先阅读题面
考点(AI 标注)模拟/实现原地数组
Given a square matrix of pixel colors (B and W), find the largest subsquare anchored at the top-left corner with all four borders filled with black pixels. Return three values: the row, column of the top-left corner, and the side length. If no such subsquare exists, the side length is 0.
Examples:
["BBB","B B","BBB"]→"0 0 3"