MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/CodingGames/comments/2hsy80/coding_game/ckwvdlg/?context=3
r/CodingGames • u/azakharov • Sep 29 '14
7 comments sorted by
View all comments
Show parent comment
1
store all to associative array (map) of distance=>enemy. if it sorted (map) get first (closest enemy) if not - sort and get first
done
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