[AtCoder] D - Index TrioRead more
[AtCoder] C - Just KRead more
[AtCoder] B - Make NRead more
[AtCoder] A - Trailing ZerosRead more
[Codeforces] Round #697 (Div. 3) C. Ball in BerlandRead more
[Codeforces] Round #702 (Div. 3) E. Accidental VictoryRead more
[Codeforces] Educational Round 105 (Rated for Div. 2) B. Berland CrosswordRead more
[Codeforces] April Fools Day Contest 2021 C. Fibonacci WordsRead more
[Codeforces] 2^SortRead more
[LeetCode] Largest 1-Bordered Square

1139. Largest 1-Bordered Square

Given a 2D grid of 0s and 1s, return the number of elements in the largest square subgrid that has all 1s on its border, or 0 if such a subgrid doesn’t exist in the grid.

Read more