The idea behind my solution is that in the optimal path you don't enter any vertex after the first time it can be entered + n. I wonder if there is a proof that this works correctly or way to disprove it, but I'm having trouble finding either. If anyone is interested, please help.



