Basic Geometry Problems for Coding Interviews
10 basic Geometry problems from real coding interviews, each with test cases you can run online. By difficulty they split into 10 basic, 0 intermediate and 0 advanced. The companies that ask them most often are Amazon, Bloomberg, Google, C3 AI.
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
- Largest Perimeter Triangle (Basic)
- Circular Window Maximum (Basic)
- Largest Triangle Area (Basic)
- Minimum Cuts to Divide a Circle (Basic)
- Doubled Polygon Area (Basic)
- Orientation of Three Points (Basic)
- Point Inside Triangle (Basic)
- Angle Type Between Vectors (Basic)
- Polygon Diagonal Count (Basic)
- Triangle Kind From Sides (Basic)
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.