Function maxColumnLength

  • Get the lengths of each column in a table. Can include a header.

    Time complexity: O(n) where n is the number of rows * columns.

    Space complexity: O(n)

    Parameters

    • table: Table<string>

      The table of strings to use for calculations

    Returns number[]

    An array of lengths

    Format