## Maximum path sum in an Inverted triangle | SET 2

Given numbers in form of an Inverted triangle. By starting at the bottom of the triangle and moving to adjacent numbers on the row above,… Read More »

## Number of triangles that can be formed with given N points

Given X and Y coordinates of N points on a Cartesian plane. The task is to find the number of possible triangles with the non-zero… Read More »

## Area of Incircle of a Right Angled Triangle

Given the P, B and H are the perpendicular, base and hypotenuse respectively of a right angled triangle. The task is to find the area… Read More »

## Program to calculate the Area and Perimeter of Incircle of an Equilateral Triangle

Given the length of sides of an equilateral triangle, the task is to find the area and perimeter of Incircle of the given equilateral triangle.… Read More »

## 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 »