Problem 2639 · Easy

Find the Width of Columns of a Grid

Scan every cell once and keep the longest text length seen in each column; a negative sign counts toward its length.

Open the interactive visualisation