New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FEATURE REQUEST] Backtracking algorithms (All combinations) #3912
Comments
|
I think that's what you are looking for https://github.com/TheAlgorithms/Java/blob/b6563cf37ae7db33e3f3c8ad513acd905353c147/src/main/java/com/thealgorithms/backtracking/Combination.java |
|
It is a little bit different, as the one you send is the combination in an array, and in this situation is from 1...n |
|
This is the sister repository with the problem I'm talking about, https://github.com/TheAlgorithms/Python/blob/master/backtracking/all_combinations.py lmk to start it! |
|
You could just create a function that creates an array with values from 1 to n and calls the already implemented combination function, right? Feel free to do that and I'll review |
|
Sure, I can do that |


What would you like to Propose?
I would like to add the all combinations algorithm!
Issue details
Although it is already in another repository from the Algorithms group (Python), I was unable to locate it in the folders (Java).
Additional Information
In this problem, we want to determine all possible combinations of k numbers out of 1 ... n. We use backtracking to solve this problem.
The text was updated successfully, but these errors were encountered: