-
Notifications
You must be signed in to change notification settings - Fork 0
Computational Math
Roberto Fronteddu edited this page Apr 9, 2026
·
6 revisions
Common problems:
- geometry formulas
- interval overlap
- prefix sums / area decomposition
- sweep line
- segment tree / union intervals
- rectangle counting
- [Rectangle Overlap]https://leetcode.com/problems/rectangle-overlap/ - Check if rectangles intersect, bounding box logic,
- Largest Triangle Area - axis-aligned intersection
- Projection Area of 3D Shapes geometry formula, cross product, shoelace
- Count Lattice Points Inside a Circle - grid geometry, area decomposition, distance formula
- Rectangle Area - area decomposition, intersection math, area(A) + area(B) − overlap
- Minimum Area Rectangle - hashing + geometry, rectangle detection
- Minimum Area Rectangle II - vector geometry, dot products, rotated rectangles
- Random Point in Non-overlapping Rectangles - prefix sums, weighted random, geometry
- Max Sum of Rectangle No Larger Than K - 2D prefix sums, ordered set
- Perfect Rectangle - corner counting, area verification, hash set
- Rectangle Area II - line sweep, segment tree, union of intervals
- The Skyline Problem - line sweep, heap, events
- Amount of New Area Painted Each Day - interval union, segment tree, sweep line
- Falling Squares - segment tree, coordinate compression, range max
- Maximum White Tiles Covered by a Carpet - interval sweep, two pointers