0
help string permutation
https://sololearn.com/compiler-playground/cTHLRAnirS6N/?ref=app so i have this code and its outputting dog, odg, ogd, dgo, gdo, god but i need it to input dog, dgo, odg, ogd, gdo, god can someone help me figure out what to tweak thx
2 Respostas
+ 1
Just swap the two for loops:
for index in range(len(aSet)):
for permutation in partial:
https://sololearn.com/compiler-playground/cQI9xhD23mAH/?ref=app