GDSC-MITS / Contribute-To-HacktoberFest

Link Tree for all our socials
https://linktr.ee/gdscmits
14 stars 41 forks source link

Create permutations.cpp #87

Closed Udyan31 closed 1 year ago

Udyan31 commented 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]]