
Write a program that prints every permutation of one string argument.
./lex_permutations cab | cat -eExpected result
abc$
acb$
bac$
bca$
cab$
cba$For your own tracking. Tests grade your code.
./lex_permutations m | cat -eExpected result
m$Expected files
lex_permutations.cAllowed functions
writeputsmalloccallocreallocfree
v0.40: Create exercises. Challenge the community.
Meet Studio →Write a program that prints every permutation of one string argument.
./lex_permutations cab | cat -eExpected result
abc$
acb$
bac$
bca$
cab$
cba$For your own tracking. Tests grade your code.
./lex_permutations m | cat -eExpected result
m$Expected files
lex_permutations.cAllowed functions
writeputsmalloccallocreallocfree
Run the tests to grade your code
Build your code, then check each test here. Open a result to inspect its output.