Geometry coding challenges

Practise geometry with 4 coding challenges, from easy to hard. Every challenge runs in your browser with instant tests, an AI review of your code and community solutions to compare.

Easy · 1 Medium · 2 Hard · 1

Skills you'll practise: 2D dynamic programmingAvoiding duplicatesEnumerationOptimizationOrdering conditionsRight trianglesSearch pruningTriangle inequality
  • Python · C++ · C#
  • Automated tests
  • AI code review
  • Community solutions
226
Challenges
2
Solutions shared
3
Languages

All challenges

Search by topic, language, or difficulty.

4 challenges
Medium

Find Right-Triangle Triples

List all integer right triangles with a specified perimeter.

You'll learn EnumerationAvoiding duplicates
GeometryNumber-theory
No solutions yet
Hard

Cut a Rectangle Into Squares

Find the fewest straight cuts needed to produce only squares.

You'll learn 2D dynamic programmingOptimization
Dynamic-programmingGeometry
No solutions yet
Medium

Right-Triangle Product

Find the largest side product of an integer right triangle with a given perimeter.

You'll learn Right trianglesSearch pruning
GeometryNumber-theory
No solutions yet
Easy

Triangle Classification

Classify three side lengths as invalid, equilateral, isosceles, or scalene.

You'll learn Triangle inequalityOrdering conditions
ConditionsGeometry
No solutions yet