// This file is generated by mkfile.py
// Date: 2026-03-09

#include <solution/119.h>
#include <stdlib.h>
int *getRow(int rowIndex, int *returnSize)
{
    *returnSize = rowIndex + 1;
    int *ret = malloc(sizeof(int) * (*returnSize));
    ret[0] = ret[rowIndex] = 1;
    if (rowIndex > 1)
    {
        int size;
        int *arr = getRow(rowIndex - 1, &size);

        for (int i = 1; i < rowIndex; i++)
            ret[i] = arr[i - 1] + arr[i];

        free(arr);
    }

    return ret;
}
