Efficient Algorithms for Range Queries, Matrix Exponentiation, Trie DFS, and Subset Sum with Modular Arithmetic
Problem T1: Maximum Cross-Shaped Area in a Grid
Given a binary grid where '.' represents a valid cell and other characters are blocked, compute the largest cross-shaped region centered at any valid cell. A cross is defined by a vertical segment of height h and a horizontal segment of width w, both centered at the same point, with the total peri ...
Posted on Wed, 26 Aug 2026 16:40:14 +0000 by ricerocket