-
Notifications
You must be signed in to change notification settings - Fork 19.9k
[FEATURE REQUEST] Backtracking algorithms (All combinations) #3912
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
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 |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Please reopen this issue once you add more information and updates here. If this is not the case and you need some help, feel free to seek help from our Gitter or ping one of the reviewers. Thank you for your contributions! |
Hello @BamaCharanChhandogi, this PR is already closed as I added a solution for it, I am not a reviewer, I think with that siriak can help out! |
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: