Weep
Godspeed to the sound of the pounding
- Reaction score
- 400
The goal is to find which unit to target for maximum splash. This does not need to be 100% accurate; a near-best result is fine. O(n) or O(n^2 for greatly lowered n) would be nice.
Hopefully there's a better way than enumerating an area around every unit and counting (or enumerating an area around every unit and incrementing an attached integer on the enumerated units) followed by a sort.
Hopefully there's a better way than enumerating an area around every unit and counting (or enumerating an area around every unit and incrementing an attached integer on the enumerated units) followed by a sort.