Backtracking

Longest Path of Consecutive Numbers in 2D Array
AskAI

Given a 2D array of integers, return the length of the longest path of consecutive numbers that can be formed. The path can start and end at any position in the array.

Backtracking – All Possible Permutations
AskAI

This problem is about backtracking, or generating all possible permutations of a given set of distinct integers. For example, if the input is [1,2,3], then the output should be [[1,2,3],[1,3,2],[2,1,3],[2,3,1],[3,1,2],[3,2,1]].

Possible subsets of a set of distinct integers
AskAI

This problem asks us to return all possible subsets of a given set of distinct integers. For example, if the input is [1,2,3], then the output should be all possible subsets of those integers: [1], [1,2], [1,2,3], [1,3], [2], [2,3], and [3].

2D Array - Longest Path of Consecutive Integers
AskAI

This technical problem deals with finding the longest path of consecutive integers in a 2D array, starting from the top left corner. The path can move up, down, left, or right.

Get all permutations of a string
AskAI

This problem asks you to write a function that returns all possible permutations of a given string. For example, given the input string "abc", the function should return the following six permutations : "abc", "acb", "bac", "bca", "cab", and "cba".

Find the Longest Path of Consecutive Numbers in a 2D Array
AskAI

Given a 2D array of integers, this algorithm finds the length of the longest path of consecutive numbers that can be formed in the array. The path can start and end at any position in the array.

All possible subsets of distinct integers
AskAI

Given a set of distinct integers, this algorithm will return all possible subsets of those integers.

All Possible Subsets of a Set of Distinct Integers
AskAI

Given a set of distinct integers, this algorithm returns all possible subsets. The subsets must be in non-descending order, and the solution set must not contain duplicate subsets.