Problem 116. Distance walked 2D
57.07% Correct | 42.93% Incorrect
Last Solution submitted on May 25, 2023
Trung Duong on 8 Feb 2012
better to describe input size: xy 4-by-2, each row is the xy-coordinate of a point
David Young on 6 Mar 2012
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 CommentsShow comments
Problem Recent Solvers298
Create a cell array out of a struct
Back to basics 11 - Max Integer
Remove the two elements next to NaN value
07 - Common functions and indexing 2
More from this Author100
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!