## Number of triangles formed from a set of points on three lines

Given three integers m, n and k that store the number of points on lines l1, l2 and l3 respectively that do not intersect. The… Read More »

## Number of Isosceles triangles in a binary tree

Pre-Requisites: Depth First Search | Parent Array Representation Given a parent array representation of a binary tree, we need to find the number of Isosceles… Read More »

## Divide an isosceles triangle in two parts with ratio of areas as n:m

Given the height of an isosceles triangle and two integers , . The task is to find the height from top of the triangle such… Read More »

## Area of the circumcircle of any triangles with sides given

Given a triangle with known sides a, b and c; the task is to find the area of its circumcircle. Examples: Input: a = 2,… Read More »

## Program to find the Radius of the incircle of the triangle

Given a circle which is the incircle of a triangle whose sides are a, b< and c, the task is to find the radius of… Read More »

## Find other two sides and angles of a right angle triangle

Given one side of right angle triangle, check if there exists a right angle triangle possible with any other two sides of the triangle. If… Read More »

## Largest triangle that can be inscribed in a semicircle

Given a semicircle with radius r, we have to find the largest triangle that can be inscribed in the semicircle, with base lying on the… Read More »

## Minimum length of the shortest path of a triangle

Given N points on the plane, ( X1, Y1 ), ( X2, Y2 ), ( X3, Y3 ), ……, ( XN, YN ). The task… Read More »

## Recursive program to print triangular patterns

We have discussed iterative pattern printing in previous post. Examples: Input : 7 Output : * * * * * * * * * *… Read More »

## Program for incrementing/decrementing triangle pattern

Numeric incrementing triangle pattern Write a program to print a Numeric incrementing triangle pattern starting with a given number N. Examples: Input : 3 Output… Read More »

## Program to check congruency of two triangles

Given four arrays of 3 numbers each which represents sides and angles of two triangles. The task is to check if the two triangles are… Read More »

## Number of rectangles in a circle of radius R

Given a circular sheet of radius R and the task is to find the total number of rectangles with integral length and width that can… Read More »

## Program to check similarity of given two triangles

Given four array of 3 numbers each which represents sides and angles of two triangles. The task is to check if two triangles are similar… Read More »

## Maximum height of triangular arrangement of array values

Given an array, we need to find the maximum height of the triangle which we can form, from the array values such that every (i+1)th… Read More »

## Minimum Sum Path in a Triangle

Given a triangular structure of numbers, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the… Read More »