python (65.2k questions)
javascript (44.3k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (13k questions)
Combination recursive - Backtracking
I've been trying to code 3 different recursive function(Backtracking). The first one should show all permutations(orders doesn't matters) and there's a specif size. The second one should show all cycl...
Sule26
Votes: 0
Answers: 0
Java program of the Backtracking algorithm for the Sum-of-Subsets problem
I'm currently working on a problem where I'm supposed to implement in Java the backtracking algorithm of the sum-of-subset.
Backtracking is used to solve problems in which a sequence of objects is sel...
aksak
Votes: 0
Answers: 0
How to print path during backtracking?
I am currently working on a backtracking program and was asked to print the path for the result. Here's an example:
Imagine we are given a weighted graph, represented by adjacency list, g,
g = {
&...
mysteriousL
Votes: 0
Answers: 1
Recursive solution to counting the number of ways you can go up a staircase
I'm trying to solve the problem of "count ways to reach the nth step in a staircase" with recursion. When given a number of stairs to climb, I have to calculate the number of ways to climb t...

SomeoneLearning17
Votes: 0
Answers: 1