What Emilio is saying is that your example: " 3 1 2 3 0 3 1 2 3 0 4" is not a drive. By definition, a drive may not contain "3 0 3" because that is a U-turn.
... Oh. I see that it has already bee answered. Oops.
If only I had as much free time as I did in college...