当前位置:网站首页>Number of possible stack order types of stack order with length n

Number of possible stack order types of stack order with length n

2022-07-05 04:01:00 Poetry and prodigal son

import math


def pop_sequence_species(N):
    return math.comb(2 * N, N) / (N + 1)


if __name__ == '__main__':
    print(pop_sequence_species(3))
原网站

版权声明
本文为[Poetry and prodigal son]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/186/202207050359502351.html