+163

💡 String Permutation Challenge 🔤

Write a program to display all possible permutations of a given input string (if the string contains duplicate characters, you may have multiple repeated results). Input should be of the form permute string and output should be a word per line. Example: input: cat output: cat cta act atc tac tca

2/7/2018 9:46:35 AM

Vukan

157 Answers

New Answer

+86

https://code.sololearn.com/cF67of28nGUZ/?ref=app

+54

https://code.sololearn.com/c24EP02YuQx3/?ref=app

+46

Here's mine https://code.sololearn.com/WYm6dDHbsCi6/?ref=app

+38

https://code.sololearn.com/cb6nEL7bZuBN/?ref=app

+36

A one-liner?! https://code.sololearn.com/cXJcCKUUSkli/?ref=app And Congratulations for CHALLENGE OF THE DAY 🎉🎊🎉🎊

+33

Congrats for challenge of the day buddy✌️👍😎 Here's my try in RUBY 👇 (One Liner) https://code.sololearn.com/c7wGVza5o1XL/?ref=app

+28

Congratulations for the challenge of the day 👍😉

+27

My lazy way to do it: https://code.sololearn.com/c9Nlj8bjneAE/#py

+26

My try https://code.sololearn.com/cZNeH2NQbV4E/?ref=app

+25

https://code.sololearn.com/cD7KizzPGQBe/?ref=app

+22

🏁 Challenge of The Day !! 🏁 Congratulations mate !! 👏👏👏 Excellent !! 👌👏👍🆒😊

+22

@Vukan Congrats on the COTD 👏👍😉

+20

mine in python https://code.sololearn.com/cOk78FS9AjJx/?ref=app

+19

@ Vukan, have a look at my last public code 👍😉

+18

My attempt using c++ https://code.sololearn.com/cmmcygJpR0Zq/?ref=app

+17

@ LukArToDo thank you 😃

+16

Congratulations @Vukan👍👍

+16

@ Daljit Singh thank you 😃

+15

congrats for COTD😊😊 my code is not that good but I have posted it

+15

@ GAWEN STEASY thank you very much 😊