Closed Udyan31 closed 1 year ago
Leetcode Question Link: https://leetcode.com/problems/permutations/
C++ program to find all the possible permutations.
Example : Input: nums = [1,2,3] Output: [[1,2,3],[1,3,2],[2,1,3],[2,3,1],[3,1,2],[3,2,1]]
Leetcode Question Link: https://leetcode.com/problems/permutations/
C++ program to find all the possible permutations.
Example : Input: nums = [1,2,3] Output: [[1,2,3],[1,3,2],[2,1,3],[2,3,1],[3,1,2],[3,2,1]]