Loading...
Loading...
Loading...
Support tickets wait in a queue, each with a number. Build a linked list from the numbers in the order given, then print the list with -> between neighbours.
-> .Example
Input
12 7 30
Output
12 -> 7 -> 30
Try the problem first. Open one hint at a time.
Build the nodes first, then walk them with while node:.
Collect the values in a list and join them with -> .
Write your Python code, run it on the examples and submit it to hidden tests.
Solve in the editor