pratik-choudhari / AlgoCode

Welcome everyone!🌟 Here you can solve problems, build scrappers and much more💻
https://github.com/pratik-choudhari/AlgoCode
MIT License
131 stars 166 forks source link

Distinct Permutations Of the String #456

Closed Nishitk-20 closed 3 years ago

Nishitk-20 commented 3 years ago

Distinct Permutations Of the String

Feature ✅

Description

To print all the possible permutations of the String which are different, that is, no permuatations are repeated A permutation, also called an “arrangement number” or “order,” is a rearrangement of the elements of an ordered list S into a one-to-one correspondence with S itself. A string of length n has n! permutation.

Example

Input: str[] = "ABCA" Output: AABC AACB ABAC ABCA ACBA ACAB BAAC BACA BCAA CABA CAAB CBAA

Checklist:

Contributors are supposed to mention their coding language while asking for assignment

Nishitk-20 commented 3 years ago

I will like to do it using cpp

wjyeap123 commented 3 years ago

Hi, I would like to do this in Python