Problem 1942. GJam 2014 China Rd B: Party
93.33% Correct | 6.67% Incorrect
Last Solution submitted on Aug 04, 2019
Alfonso Nieto-Castanon on 20 Oct 2013
I am sure there are other more subtle ways to go about it but this seems about as fast as I can make it for a general brute-force solution (0.11s)
Tim on 18 Oct 2013
This one seems to work for the large test case, too, although it is not a general solution [for size(p,1)>100 it only tests corner points].
Problem Recent Solvers5
Matrix indexing with two vectors of indices
More from this Author260
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!