题解 - Medium27152 - Triangular numberOn this page27152 - Triangular numberAnswer TestCases给定一个数字N,找到第 N 个三角数,即1 + 2 + 3 + ... + N。Solutiontype Triangular< N extends number, C extends 0[] = [], R extends 0[] = []> = C['length'] extends N ? R['length'] : Triangular<N, [...C, 0], [...R, ...C, 0]>