Problem 1339. Travelling Salesman Problem (TSP)
Solution Stats
Problem Comments
-
5 Comments
This problem needs an update due to changes in scoring system in Cody
You need to specify the comparison method when sorting complex numbers. Any change done to the order of elements currently creates an invalid solution (even sorting elements), and I guess the one that you want is 'real'. Or don't use complex numbers and create pair of values [x,y]. I've commented my solution. Futhermore, the function calculateSize no longer exists.
Would someone please fix the test? The function calculateSize does not exist.
The test suite has been fixed, Chris. You can now attempt the question.
Thanks Dyuman
Solution Comments
Show commentsProblem Recent Solvers35
Suggested Problems
-
Find state names that end with the letter A
1188 Solvers
-
Least common multiple of many numbers
245 Solvers
-
Project Euler: Problem 3, Largest prime factor
1631 Solvers
-
Project Euler: Problem 6, Natural numbers, squares and sums.
2362 Solvers
-
1551 Solvers
More from this Author3
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!