Performance tips for finding unique permutation

前端 未结 5 1911
没有蜡笔的小新
没有蜡笔的小新 2020-12-24 08:05

TLDR: how to find multidimensional array permutation in php and how to optimize for bigger arrays?

This is continuation of this question: how to fin

5条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-24 08:41

    what you should try to use is called a Power set which is:

    from wikipedia in mathematics, the power set (or powerset) of any set S is the set of all subsets of S, including the empty set and S itself, variously denoted as P(S),

提交回复
热议问题