🐐
LeetGoat
Interview Prep
Competitive Programming
Discord
Geometry templates
Range queries
2D range queries
Sets
Union find
Strings
Tree queries
Tree helpers
Graphs
Matrices
Math
Primes
Bit ops & Bitset
Geometry
Misc.
Golden References
Geometry
polygonArea2(points) O(N)
Twice the signed area of a polygon (shoelace), exact in integers: > 0 counterclockwise, < 0 clockwise