# Geometry DSA Problems

> 42 Geometry coding problems for placements and interviews, sorted easiest first, with hints and company tags. Free practice on InternHack.

Canonical: https://www.internhack.in/learn/dsa/geometry
Last updated: 2026-11-28

42 geometry problems for coding interviews and campus placements, with hints and company tags. Below are all 42: 9 easy, 19 medium and 14 hard. Practise them free on InternHack and track what you have solved.

## Geometry problems, easiest first

1. [Check If It Is a Straight Line](https://www.internhack.in/learn/dsa/problem/check-if-it-is-a-straight-line) (Easy)
2. [Largest Triangle Area](https://www.internhack.in/learn/dsa/problem/largest-triangle-area) (Easy)
3. [Matrix Cells in Distance Order](https://www.internhack.in/learn/dsa/problem/matrix-cells-in-distance-order) (Easy)
4. [Minimum Cuts to Divide a Circle](https://www.internhack.in/learn/dsa/problem/minimum-cuts-to-divide-a-circle) (Easy)
5. [Minimum Time Visiting All Points](https://www.internhack.in/learn/dsa/problem/minimum-time-visiting-all-points) (Easy)
6. [Projection Area of 3D Shapes](https://www.internhack.in/learn/dsa/problem/projection-area-of-3d-shapes) (Easy)
7. [Rectangle Overlap](https://www.internhack.in/learn/dsa/problem/rectangle-overlap) (Easy)
8. [Surface Area of 3D Shapes](https://www.internhack.in/learn/dsa/problem/surface-area-of-3d-shapes) (Easy)
9. [Valid Boomerang](https://www.internhack.in/learn/dsa/problem/valid-boomerang) (Easy)
10. [Circle and Rectangle Overlapping](https://www.internhack.in/learn/dsa/problem/circle-and-rectangle-overlapping) (Medium)
11. [Convex Polygon](https://www.internhack.in/learn/dsa/problem/convex-polygon) (Medium)
12. [Count Lattice Points Inside a Circle](https://www.internhack.in/learn/dsa/problem/count-lattice-points-inside-a-circle) (Medium)
13. [Count Number of Trapezoids I](https://www.internhack.in/learn/dsa/problem/count-number-of-trapezoids-i) (Medium)
14. [Detonate the Maximum Bombs](https://www.internhack.in/learn/dsa/problem/detonate-the-maximum-bombs) (Medium)
15. [Find Maximum Area of a Triangle](https://www.internhack.in/learn/dsa/problem/find-maximum-area-of-a-triangle) (Medium)
16. [Find the Largest Area of Square Inside Two Rectangles](https://www.internhack.in/learn/dsa/problem/find-the-largest-area-of-square-inside-two-rectangles) (Medium)
17. [Find the Number of Ways to Place People I](https://www.internhack.in/learn/dsa/problem/find-the-number-of-ways-to-place-people-i) (Medium)
18. [Generate Random Point in a Circle](https://www.internhack.in/learn/dsa/problem/generate-random-point-in-a-circle) (Medium)
19. [K Closest Points to Origin](https://www.internhack.in/learn/dsa/problem/k-closest-points-to-origin) (Medium)
20. [Maximum Area Rectangle With Point Constraints I](https://www.internhack.in/learn/dsa/problem/maximum-area-rectangle-with-point-constraints-i) (Medium)
21. [Minimum Area Rectangle](https://www.internhack.in/learn/dsa/problem/minimum-area-rectangle) (Medium)
22. [Minimum Area Rectangle II](https://www.internhack.in/learn/dsa/problem/minimum-area-rectangle-ii) (Medium)
23. [Minimum Lines to Represent a Line Chart](https://www.internhack.in/learn/dsa/problem/minimum-lines-to-represent-a-line-chart) (Medium)
24. [Minimum Number of Lines to Cover Points](https://www.internhack.in/learn/dsa/problem/minimum-number-of-lines-to-cover-points) (Medium)
25. [Mirror Reflection](https://www.internhack.in/learn/dsa/problem/mirror-reflection) (Medium)
26. [Queries on Number of Points Inside a Circle](https://www.internhack.in/learn/dsa/problem/queries-on-number-of-points-inside-a-circle) (Medium)
27. [Rectangle Area](https://www.internhack.in/learn/dsa/problem/rectangle-area) (Medium)
28. [Valid Square](https://www.internhack.in/learn/dsa/problem/valid-square) (Medium)
29. [Best Position for a Service Centre](https://www.internhack.in/learn/dsa/problem/best-position-for-a-service-centre) (Hard)
30. [Check if the Rectangle Corner Is Reachable](https://www.internhack.in/learn/dsa/problem/check-if-the-rectangle-corner-is-reachable) (Hard)
31. [Count Number of Trapezoids II](https://www.internhack.in/learn/dsa/problem/count-number-of-trapezoids-ii) (Hard)
32. [Erect the Fence](https://www.internhack.in/learn/dsa/problem/erect-the-fence) (Hard)
33. [Erect the Fence II](https://www.internhack.in/learn/dsa/problem/erect-the-fence-ii) (Hard)
34. [Find the Number of Ways to Place People II](https://www.internhack.in/learn/dsa/problem/find-the-number-of-ways-to-place-people-ii) (Hard)
35. [Max Points on a Line](https://www.internhack.in/learn/dsa/problem/max-points-on-a-line) (Hard)
36. [Maximum Area Rectangle With Point Constraints II](https://www.internhack.in/learn/dsa/problem/maximum-area-rectangle-with-point-constraints-ii) (Hard)
37. [Maximum Number of Darts Inside of a Circular Dartboard](https://www.internhack.in/learn/dsa/problem/maximum-number-of-darts-inside-of-a-circular-dartboard) (Hard)
38. [Maximum Number of Intersections on the Chart](https://www.internhack.in/learn/dsa/problem/maximum-number-of-intersections-on-the-chart) (Hard)
39. [Maximum Number of Visible Points](https://www.internhack.in/learn/dsa/problem/maximum-number-of-visible-points) (Hard)
40. [Minimize Manhattan Distances](https://www.internhack.in/learn/dsa/problem/minimize-manhattan-distances) (Hard)
41. [Perfect Rectangle](https://www.internhack.in/learn/dsa/problem/perfect-rectangle) (Hard)
42. [Self Crossing](https://www.internhack.in/learn/dsa/problem/self-crossing) (Hard)

## Companies that ask geometry problems

- [Google](https://www.internhack.in/learn/dsa/companies/google): 31 of these problems
- [Amazon](https://www.internhack.in/learn/dsa/companies/amazon): 17 of these problems
- [Meta](https://www.internhack.in/learn/dsa/companies/meta): 14 of these problems
- [Microsoft](https://www.internhack.in/learn/dsa/companies/microsoft): 12 of these problems
- [Bloomberg](https://www.internhack.in/learn/dsa/companies/bloomberg): 11 of these problems
- [Uber](https://www.internhack.in/learn/dsa/companies/uber): 3 of these problems
- [Nvidia](https://www.internhack.in/learn/dsa/companies/nvidia): 3 of these problems
- [Citadel](https://www.internhack.in/learn/dsa/companies/citadel): 2 of these problems
- [Meesho](https://www.internhack.in/learn/dsa/companies/meesho): 2 of these problems
- [Apple](https://www.internhack.in/learn/dsa/companies/apple): 2 of these problems
- [Cisco](https://www.internhack.in/learn/dsa/companies/cisco): 2 of these problems
- [Linkedin](https://www.internhack.in/learn/dsa/companies/linkedin): 2 of these problems

## Before your interview

Most resumes are filtered by software before a recruiter reads them. [Check your resume ATS score free](https://www.internhack.in/ats-score/try), no signup needed.

## Other DSA topics

- [Array](https://www.internhack.in/learn/dsa/array) (1869)
- [String](https://www.internhack.in/learn/dsa/string) (775)
- [Hash Table](https://www.internhack.in/learn/dsa/hash-table) (708)
- [Math](https://www.internhack.in/learn/dsa/math) (564)
- [Dynamic Programming](https://www.internhack.in/learn/dsa/dynamic-programming) (557)
- [Sorting](https://www.internhack.in/learn/dsa/sorting) (464)
- [Greedy](https://www.internhack.in/learn/dsa/greedy) (407)
- [Depth-First Search](https://www.internhack.in/learn/dsa/depth-first-search) (314)
- [Binary Search](https://www.internhack.in/learn/dsa/binary-search) (298)
- [Matrix](https://www.internhack.in/learn/dsa/matrix) (246)
- [Breadth-First Search](https://www.internhack.in/learn/dsa/breadth-first-search) (245)
- [Bit Manipulation](https://www.internhack.in/learn/dsa/bit-manipulation) (238)
- [Tree](https://www.internhack.in/learn/dsa/tree) (235)
- [Two Pointers](https://www.internhack.in/learn/dsa/two-pointers) (217)
- [Prefix Sum](https://www.internhack.in/learn/dsa/prefix-sum) (204)
- [Database](https://www.internhack.in/learn/dsa/database) (197)
- [Heap (Priority Queue)](https://www.internhack.in/learn/dsa/heap-priority-queue) (196)
- [Simulation](https://www.internhack.in/learn/dsa/simulation) (177)
- [Counting](https://www.internhack.in/learn/dsa/counting) (174)
- [Binary Tree](https://www.internhack.in/learn/dsa/binary-tree) (169)

## Related

- [Home](https://www.internhack.in/)
- [Learn](https://www.internhack.in/learn)
- [DSA](https://www.internhack.in/learn/dsa)
