What is the backtracking algorithm
This article introduces the relevant knowledge of "what is the backtracking algorithm". In the operation of actual cases, many people will encounter such a dilemma. Then let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
Example 1:
Input: nums = [1rect 1je 2] Output: [[1rect 1rect 2], [1rect 2je 1], [2meme 1je 1]]
Example 2:
Input: nums = [1rect 2jue 3] Output: [1rect 2je 3], [1je 3je 2], [2je 1je 3], [2recorder 3je 1], [3m re 1m 1m 2], [3je 2je 1]]
Constraints:
one