Problem 939 · Medium

Minimum Area Rectangle

Treat each point pair as a diagonal and look up the two other corners in a hash set.

Open the interactive visualisation