mirror of
https://hub.njuu.cf/TheAlgorithms/Python.git
synced 2023-10-11 13:06:12 +08:00
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
0a24286160
commit
78699e66da
@ -1,7 +1,6 @@
|
||||
# return all subset combinations of n element in given set of r element.
|
||||
|
||||
|
||||
|
||||
def subset_combinations_dp(elements, n):
|
||||
r = len(elements)
|
||||
|
||||
@ -23,4 +22,4 @@ if __name__ == "__main__":
|
||||
elements = [10, 20, 30, 40]
|
||||
n = 2
|
||||
result = subset_combinations_dp(elements, n)
|
||||
print(result)
|
||||
print(result)
|
||||
|
Loading…
Reference in New Issue
Block a user