##
Find all angles of a given triangle
May 21, 2017

Given coordinates of all three vertices of the triangle in the 2D plane, the task is to find all three angles. Example: Input : A… Read More »

May 21, 2017

Given coordinates of all three vertices of the triangle in the 2D plane, the task is to find all three angles. Example: Input : A… Read More »

May 7, 2017

Given N points in 2-dimensional space, we need to find three points such that triangle made by choosing these points should not contain any other… Read More »

April 16, 2017

Given a right triangle of numbers, find the largest of the sum of numbers that appear on the paths starting from the top towards the… Read More »

April 14, 2017

Given area and hypotenuse, the aim is to print all sides if right triangle can exist, else print -1. We need to print all sides… Read More »

April 8, 2017

What is the maximum number of squares of size 2×2 units that can be fit in a right angled isosceles triangle of a given base… Read More »

February 24, 2017

Given three coordinates (x, y), which are the midpoint of the sides of the triangle. The task is to find the coordinates of the triangle.… Read More »

February 11, 2017

Given a matrix of N rows and M columns, consists of three value {r, g, b}. The task is to find the area of the… Read More »

February 10, 2017

Given an array of integers, we need to find out whether it is possible to construct at least one non-degenerate triangle using array values as… Read More »

February 9, 2017

We have given numbers in form of triangle, by starting at the top of the triangle and moving to adjacent numbers on the row below,… Read More »

December 16, 2016

Given n points in a Cartesian coordinate system. Count the number of triangles formed. Examples: Input : point[] = {(0, 0), (1, 1), (2, 0),… Read More »

December 15, 2016

Given hypotenuse and area of a right angle triangle, get its base and height and if any triangle with given hypotenuse and area is not… Read More »

November 12, 2016

We have N coins which need to arrange in form of a triangle, i.e. first row will have 1 coin, second row will have 2… Read More »

November 10, 2016

We are given co-ordinates of a triangle. The task is to classify this triangle on basis of sides and angle. Examples: Input : p1 =… Read More »

August 9, 2016

Prerequisites: BIT Given ‘n’ line segments, each of them is either horizontal or vertical, find the maximum number of triangles(including triangles with zero area) that… Read More »

July 15, 2016

Pre-requisite : BIT(Binary Indexed Tree or Fenwick Tree), 2D BIT Given a 2D plane, respond to Q queries, each of the following type: Insert x… Read More »