【发布时间】:2019-02-12 16:59:06
【问题描述】:
我试图通过几个例子来理解递归。我发现这个例子使用递归在给定大小n 的数组中打印r 元素的所有可能组合。
Print all possible combinations of r elements in a given array of size n.
他们正在使用表达式背后的想法:
我在这里试图理解的是这个表达式的概念含义。我读过不同的文章,但找不到令人满意的解释。
使用此表达式的数学或实际示例将非常有帮助。
【问题讨论】:
标签: java recursion combinations permutation mathematical-expressions