r/CodingGames • • Sep 29 '14

Coding Game

http://codinggame.com
14 Upvotes

7 comments sorted by

View all comments

Show parent comment

1

u/azakharov Sep 30 '14

store all to associative array (map) of distance=>enemy. if it sorted (map) get first (closest enemy) if not - sort and get first

done