Is there a faster way to create this list of strictly increasing tuples?

后端 未结 0 431
谎友^
谎友^ 2021-01-30 16:24

Given some natural number n, I\'m trying to create a list L such that L[i] is the list of all lists of length i, whose entries are in {1, 2, ..., n} and are strictly increasing.

相关标签:
回答
  • 消灭零回复
提交回复
热议问题