
Write a program that takes two strings and displays, without duplicates, the characters that appear in both strings, in the order they appear in the second string.
./common_second_order sprint printrun | cat -eExpected result
print$For your own tracking. Tests grade your code.
./common_second_order aabbcc cbacba | cat -eExpected result
cba$./common_second_order | cat -eExpected result
wrong number of arguments$Expected files
common_second_order.cAllowed functions
write
v0.40: Create exercises. Challenge the community.
Meet Studio →Write a program that takes two strings and displays, without duplicates, the characters that appear in both strings, in the order they appear in the second string.
./common_second_order sprint printrun | cat -eExpected result
print$For your own tracking. Tests grade your code.
./common_second_order aabbcc cbacba | cat -eExpected result
cba$./common_second_order | cat -eExpected result
wrong number of arguments$Expected files
common_second_order.cAllowed functions
write
Run the tests to grade your code
Build your code, then check each test here. Open a result to inspect its output.