How can I iterate through every possible combination of n playing cards

前端 未结 4 1251
别那么骄傲
别那么骄傲 2020-12-04 02:56

How can I loop through all combinations of n playing cards in a standard deck of 52 cards?

4条回答
  •  不思量自难忘°
    2020-12-04 03:27

    I see this problem is essentially the same as the power set problem. Please see Problems with writing powerset code to get an elegant solution.

提交回复
热议问题