from typing import List


def jagged_list(lst_of_lst: List[List[int]], fillvalue: int=0) ->List[List[int]
    ]:
    if not lst_of_lst:
        return lst_of_lst
    max_length = max(len(l) for l in lst_of_lst)
    for l in lst_of_lst:
        l.extend([fillvalue] * (max_length - len(l)))
    return lst_of_lst

3b861d116d0289dc7662a3956020bfffc88e471e
<mask token>

<mask token>


def jagged_list(lst_of_lst: List[List[int]], fillvalue: int=0) ->List[List[int]
    ]:
    if not lst_of_lst:
        return lst_of_lst
    max_length = max(len(l) for l in lst_of_lst)
    for l in lst_of_lst:
        l.extend([fillvalue] * (max_length - len(l)))
    return lst_of_lst

from typing import List


def jagged_list(lst_of_lst: List[List[int]], fillvalue: int=0) ->List[List[int]
    ]:
    if not lst_of_lst:
        return lst_of_lst
    max_length = max(len(l) for l in lst_of_lst)
    for l in lst_of_lst:
        l.extend([fillvalue] * (max_length - len(l)))
    return lst_of_lst
