## Find the coordinates of a triangle whose Area = (S / 2)

Given an integer S, the task is to find the coordinates of a triangle whose area is (S / 2). Examples: Input: S = 4… Read More »

## Number of triangles that can be formed

Given a square with N points on each side of the square and none of these points co-incide with the corners of the square. The… Read More »

## Check if a right-angled triangle can be formed by moving any one of the coordinates

Given three coordinates of a triangle (x1, y1), (x2, y2), (x3, y3). The task is to find out if the triangle can be transformed to… Read More »

## Check whether the triangle is valid or not if angles are given

Given three integers A, B and C which are the three angles of a possible triangle in degrees, the task is to check whether the… Read More »

## Program to Find the Incenter of a Triangle

Given the vertices of a triangle and length of its sides. A circle is inscribed in a triangle. The task is to find the incenter… Read More »

## Find the height of a right-angled triangle whose area is X times its base

Given that the area of a right-angled triangle is X times its base b. The task is to find the height of the given triangle.… Read More »

## Find two vertices of an isosceles triangle in which there is rectangle with opposite corners (0, 0) and (X, Y)

Given two integers X and Y. The task is to find two vertices of an isosceles triangle ABC(right-angled at B) which has one vertex at… Read More »

## Area of triangle formed by the axes of co-ordinates and a given straight line

Given a straight line with equation coefficients as a, b & c(ax + by + c = 0), the task is to find the area… Read More »

## Number of triangles possible with given lengths of sticks which are powers of 2

Given an array of N integers where arr[i] denotes the number of sticks of length 2i. The task is to find the number of triangles… Read More »

## Find the hypotenuse of a right angled triangle with given two sides

Given the other two sides of a right angled triangle, the task is to find it’s hypotenuse. Examples: Input: side1 = 3, side2 = 4… Read More »

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