#backtracking
Read more stories on Hashnode
Articles with this tag
You are given a 2D grid representing a maze where: 'S' represents the starting point, 'E' represents the ending point, '0' represents open paths,...
The n-queens puzzle is the problem of placing n queens on an n x n chessboard such that no two queens attack each other. Given an integer n, return...
Explain the Problem Given an integer array nums that may contain duplicates, return all possible subsets (the power set). The solution set must not...
Explain the Problem Given a string s, partition s such that every substring of the partition is a palindrome. Return the minimum cuts needed for a...
Explain the Problem Find all possible combinations of k numbers that add up to a number n, given that only numbers from 1 to 9 can be used and each...
Explain the Problem Given a string s and a dictionary of strings wordDict, add spaces in s to construct a sentence where each word is a valid...