Problem 2398. FIFA World Cup 2014 : Offside
44.44% Correct | 55.56% Incorrect
Last Solution submitted on Sep 14, 2022
Tim on 3 Jul 2014
In test case 3, the closest players to goalie 1 are all 3's--aren't they offside?
rifat on 3 Jul 2014
Thanks for pointing it out :-).. Corrected that. In reality, it wont be offside, since team 1 is in attack. However, I found it kind of difficult to define one team being in attack. So, corrected it anyway.
Problem Recent Solvers14
Find all elements less than 0 or greater than 10 and replace them with NaN
07 - Common functions and indexing 2
More from this Author44
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!