## Maximum Perimeter Triangle from array

Given an Array of non-negative integers. Find out three elements from this array which form a triangle of maximum perimeter. Examples : Input : {6,… Read More »

## Triangular Matchstick Number

Given a number X which represents the floor of a matchstick pyramid, write a program to print the total number of matchstick required to form… Read More »

## Program to calculate area of Circumcircle of an Equilateral Triangle

Given the length of sides of an equilateral triangle. We need to write a program to find the area of Circumcircle of the given equilateral… Read More »

## Find all possible triangles with XOR of sides zero

Given an integer N, we need to find three integers(X, Y, Z) which can form a triangle with the following conditions: Lengths of sides are… Read More »

## Sierpinski triangle

Sierpinski triangle is a fractal and attractive fixed set with the overall shape of an equilateral triangle. It subdivides recursively into smaller triangles. Examples :… Read More »

## Check whether triangle is valid or not if sides are given

Given three sides, check whether triangle is valid or not. Examples: Input : a = 7, b = 10, c = 5 Output : Valid… Read More »

## Count of triangles with total n points with m collinear

There are ‘n’ points in a plane, out of which ‘m’ points are co-linear. Find the number of triangles formed by the points as vertices… Read More »

## Program for triangular pattern (mirror image around 0)

Given the value of n, print the pattern. Examples : Input : n = 5 Output : 0 101 21012 3210123 432101234 Input : n… Read More »

## Time required to meet in equilateral triangle

Given length of sides of equilateral triangle (s), and velocities(v) of each animal tagged on the vertices of triangle, find out the time after which… Read More »

## Number of triangles after N moves

Find the number of triangles in Nth step, Rules: Draw an equilateral triangle at the start. In the i-th move, take the uncolored triangles, divides… Read More »

## Program to find third side of triangle using law of cosines

Given two sides A, B and angle C. Find the third side of the triangle using law of cosines. Examples: Input : a = 5,… Read More »

## Minimum height of a triangle with given base and area

Given two integers a and b, find the smallest possible height such that a triangle of atleast area “a” and base “b” can be formed.… Read More »

## Sum of the series 1, 3, 6, 10… (Triangular Numbers)

Given n, no of elements in the series, find the summation of the series 1, 3, 6, 10….n. The series mainly represents triangular numbers. Examples:… Read More »

## Find Perimeter of a triangle

Given side (a, b, c) of a triangle, we have to find the perimeter of a triangle. Perimeter : Perimeter of a triangle is the… Read More »

## Find the dimensions of Right angled triangle

Given H (Hypotenuse) and A (area) of a right angled triangle, find the dimensions of right angled triangle such that the hypotenuse is of length… Read More »