每种可能的组合

发布于 2024-12-02 17:51:45 字数 79 浏览 3 评论 0原文

如何获得动态大小集的所有可能组合?可以不使用递归或方法来完成吗?在过去的几个小时里,我一直试图找出如何仅用循环来完成它,但似乎无法想出解决方案。

How can I obtain every possible combination for a dynamic sized set? can it be done without recursion or methods? I've been trying to figure out how to do it with just loops for the past hours and can't seem to come up with a solution.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

寄人书 2024-12-09 17:51:45

相应的维基百科页面上可以找到相当多的方法。

(注意:这个答案过于笼统,因为OP没有深入了解他需要什么)

Quite a few methods can be found on the appropriate wikipedia page.

(note: this answer is overly generic because the OP doesn't go into any deep about what he needs)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文