summaryrefslogtreecommitdiff
path: root/free-the-bunny-workers/solution.py
diff options
context:
space:
mode:
authorn1c00o <git.n1c00o@gmail.com>2021-10-12 20:30:54 +0200
committern1c00o <git.n1c00o@gmail.com>2021-10-12 20:30:54 +0200
commitf551a3af808e5b89b8744b8b3d77dee08ae63ce9 (patch)
tree1e0fea2a6fbb800d691826b2128ea9f83e9ea383 /free-the-bunny-workers/solution.py
parent412d9f7739404b734e03c090b07e4ddfd8a1ee3f (diff)
Move my solution into a specific folder
Diffstat (limited to 'free-the-bunny-workers/solution.py')
-rw-r--r--free-the-bunny-workers/solution.py14
1 files changed, 1 insertions, 13 deletions
diff --git a/free-the-bunny-workers/solution.py b/free-the-bunny-workers/solution.py
index 66ca6e5..006515e 100644
--- a/free-the-bunny-workers/solution.py
+++ b/free-the-bunny-workers/solution.py
@@ -1,14 +1,2 @@
-from itertools import combinations
-
-
def solution(num_buns, num_required):
- c = list(combinations(range(num_buns), num_buns - (num_required - 1)))
- res = []
-
- for bunny in range(num_buns):
- res.append([k for k, b in enumerate(c) if bunny in b])
-
- return res
-
-
-print(solution(5, 3))
+ # Your code here