Intermediate Geometry Problems for Coding Interviews
32 intermediate Geometry problems from real coding interviews, each with test cases you can run online. By difficulty they split into 0 basic, 32 intermediate and 0 advanced. The companies that ask them most often are Amazon, Google, Microsoft, Meta.
Solve a few problems of each level, name the pattern after each one and revisit the ones that needed a hint a week later. Practise stating the time and space complexity and the edge cases before you code.
Coding problems
- Pascal Triangle Value (Intermediate)
- Maximum Circular Subarray (Intermediate)
- House Robber II (Intermediate)
- Gas Station (Intermediate)
- Triangle Minimum Path (Intermediate)
- A-Star Pathfinding (Intermediate)
- As Far From Land as Possible (Intermediate)
- Minimum Score Polygon Triangulation (Intermediate)
- Josephus Winner (Intermediate)
- Lattice Points Inside Circles (Intermediate)
- Maximum Manhattan Distance (Intermediate)
- Min Cost to Connect All Points (Intermediate)
- Count Triangles in a Graph (Intermediate)
- Valid Triangle Number (Intermediate)
- First to Roll Target Face Win Probability (Intermediate)
- Boundary Lattice Points of Polygon (Intermediate)
- Interior Lattice Points of Polygon (Intermediate)
- Is Polygon Convex (Intermediate)
- Count Collinear Triples (Intermediate)
- Axis-Parallel Right Triangles in Points (Intermediate)
- Number of Corner Points of Convex Hull (Intermediate)
- Convex Hull Doubled Area (Intermediate)
- Integer Points in Origin Circle (Intermediate)
- Manhattan Distance Sum of All Pairs (Intermediate)
- Triangle Count (Intermediate)
- Lattice Points Inside a Circle (Intermediate)
- Collinear Triple Count (Intermediate)
- Right Triangle Triples (Intermediate)
- Isosceles Triangle Triples (Intermediate)
- Robot Distance After Repeated Program (Intermediate)
- Candy Rounds Final Receiver (Intermediate)
- Distinct Spots Visited on a Circle (Intermediate)
Related
Frequently asked questions
How do I get good at geometry problems?
Practise by level, name the pattern after you solve each problem and review the ones you needed hints for. The list is ordered so you can start with the basic ones.
Can I run geometry problems online here?
Yes. Each problem opens in an editor that runs your code against test cases in Java, Python, C++, Go, JavaScript and more.