Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Using Python Permutations to Find the order in lexicographical sorted order

from itertools import permutations 
string,n = input(“Enter string and size”).split() 
print(*[''.join(i) for i in permutations(sorted(string),int(n))],sep='
')
Source by softhunt.net #
 
PREVIOUS NEXT
Tagged: #Using #Python #Permutations #Find #order #lexicographical #sorted #order
ADD COMMENT
Topic
Name
3+9 =