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

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