Problem 116. Distance walked 2D
Solution Stats
Problem Comments
-
2 Comments
better to describe input size: xy 4-by-2, each row is the xy-coordinate of a point
Needs a richer test suite. A lot of "solvers" have just put a=7 as the "solution", but although this satisfies the single test case, it doesn't solve the problem as stated.
Solution Comments
-
2 Comments
This could be quite a good solution, if you removed the "x = 7; %" part and just left what is now a comment. As it is, although it satisfies the test case, it doesn't actually solve the problem.
... though, just to be clear, the comment wouldn't be quite right, it still needs a little adjustment.
-
1 Comment
useless solution
Problem Recent Solvers297
Suggested Problems
-
205 Solvers
-
845 Solvers
-
Implement simple rotation cypher
1032 Solvers
-
Find the index of the largest value in any vector X=[4,3,4,5,9,12,0,4.....5]
351 Solvers
-
326 Solvers
More from this Author100
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!