## Check whether four points make a parallelogram

Given four points in a 2-dimensional space we need to find out whether they make a parallelogram or not. A parallelogram has four sides. Two… Read More »

Given four points in a 2-dimensional space we need to find out whether they make a parallelogram or not. A parallelogram has four sides. Two… Read More »

Given N lines in two-dimensional space in y = mx + b form and a vertical section. We need to find out whether there is… Read More »

Cuboid is a 3-dimensional box-like figure represented in the 3-dimensional plane.Cuboid has 6 rectangled-shape faces. Each face meet another face at 90 degree each.Three sides… Read More »

Cube is a 3-dimensional box-like figure represented in the 3-dimensional plane. Cube has 6 squared-shape equal faces. Each face meet another face at 90 degree… Read More »

Given a positive integer K, a circle center at (0, 0) and coordinates of some points. The task is to find minimum radius of the… Read More »

Given radius of a circle, write a program to find its circumference. Examples: Input : 2 Output : Circumference = 12.566 Input : 8 Output… Read More »

A rectangle is a flat figure in a plane.It has four sides and four equal angles of 90 degree each.In rectangle all four sides are… Read More »

A square is a flat shape, in one plane, defined by four points at the four corners. A square has four sides all of equal… Read More »

You are given an isosceles (a triangle with at-least two equal sides) right angle triangle with base b, we need to find the maximum number… Read More »

We are given n blocks of size 1 x 1, we need to find the minimum perimeter of the grid made by these blocks. Examples:… Read More »

Given coordinate of the center and radius > 1 of a circle and the equation of a line. The task is to check if the… Read More »

You are given three points a, b, c on a page. Find if it’s possible to rotate the page around the point by an angle,… Read More »

Given outer circle radius R and inner circle radius r, making circles from same center and forming boundary between them. Now, given X,Y co-ordinates which… Read More »

There are two circle A and B with their centers C1(x1, y1) and C2(x2, y2) and radius R1 and R2. Task is to check both… Read More »

Given three points, check whether they lie on a straight (collinear) or not Examples: Input : (1, 1), (1, 4), (1, 5) Output : Yes… Read More »