python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
Backtracking problem managing figures on a board
I have a problem which must be solved using backtracking, but i cannot figure out how to do it. So, i have a board and some figures (rectangles and squares). I know the dimensions for every figure and...
user14617379
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
Struggling to understand recursive backtracking in Java
I am not understanding how recursive backtracking works. We did this example in class, but I don't understand why it backtracks when it is always adding 1 to level or i. Why don't we have to subtract ...
eswcs
Votes: 0
Answers: 0
LeetCode 39. Combination Sum - How to avoid duplicates
I am doing leetcode 39. Combination Sum.:
Given an array of distinct integers candidates and a target integer target, return a list of all unique combinations of candidates where the chosen numbers ...
lalaland
Votes: 0
Answers: 1