Get your own website
Python
C
Java
 
Python result:
C result:
Java result:
Route: [0, 1, 3, 4, 2, 5, 0]
Total distance: 24
Shortest Route: 0 1 3 4 2 5 0
Total Distance: 24
Route: 0 1 3 4 2 5 0
Total Distance: 24