Loading...
Loading...
Loading...
Print the list with every repeated value removed. Keep the first appearance of each value and keep the original order. Print the result on one line separated by spaces. The starter holds a program with a bug. Find it and fix it.
Example
Input
5 3 1 3 2 1
Output
3 1 2
Keep the first 3, the first 1 and the 2.
Try the problem first. Open one hint at a time.
Remember which values you have already seen.
Add a value to the output only the first time you see it.
Write your Python code, run it on the examples and submit it to hidden tests.
Solve in the editor