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

- Number of Isosceles triangles in a binary tree
- Number of triangles that can be formed with given N points
- Maximum path sum in an Inverted triangle | SET 2
- Number of triangles possible with given lengths of sticks which are powers of 2
- Number of triangles formed from a set of points on three lines
- Program to calculate the Area and Perimeter of Incircle of an Equilateral Triangle
- Area of Incircle of a Right Angled Triangle
- Find the hypotenuse of a right angled triangle with given two sides

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 »

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 »

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 »

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 »

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 »

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 »

Given N points on the plane, ( X1, Y1 ), ( X2, Y2 ), ( X3, Y3 ), ……, ( XN, YN ). The task… Read More »

We have discussed iterative pattern printing in previous post. Examples: Input : 7 Output : * * * * * * * * * *… Read More »