79403848

Date: 2025-01-31 19:40:50
Score: 2
Natty:
Report link

You can search a 2d space efficiently with quadtrees. Essentially it's like a binary search of a 1d space expanded to 2 dimensions. For each point you're searching it should take log(n) time to search for which hexagon it goes to if you first build a quadtree out of the n hexagons that tesselate your search area.

Reasons:
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Christopher Foster