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

- Find two vertices of an isosceles triangle in which there is rectangle with opposite corners (0, 0) and (X, Y)
- Check whether the triangle is valid or not if angles are given
- Find the height of a right-angled triangle whose area is X times its base
- Check if a right-angled triangle can be formed by moving any one of the coordinates
- Program to Find the Incenter of a Triangle
- 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 »

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 »

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 »

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 »

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 »

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 »

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

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 »

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 »

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 »

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 »

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 »

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 »

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 »

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 »