##
Paper Cut into Minimum Number of Squares
January 10, 2017

Given a paper of size A x B. Task is to cut the paper into squares of any size. Find the minimum number of squares… Read More »

January 10, 2017

Given a paper of size A x B. Task is to cut the paper into squares of any size. Find the minimum number of squares… Read More »

January 8, 2017

Given n coordinate (x, y) of points on 2D plane and Q queries. Each query contains an integer r, the task is to count the… Read More »

January 7, 2017

Given some points on a plane, which are distinct and no three of them lie on the same line. We need to find number of… Read More »

December 24, 2016

Given a matrix of N rows and M columns, consist of 0’s and 1’s. The task is to find the perimeter of subfigure consisting only… Read More »

December 18, 2016

Given a set of lines and a rectangular area of interest, the task is to remove lines which are outside the area of interest and… 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 »

December 8, 2016

Given a circle of radius r in 2-D with origin or (0, 0) as center. The task is to find the total lattice points on… Read More »

November 16, 2016

Given an integer n, find the nth Pentagonal number. First three pentagonal numbers are 1, 5 and 12 (Please see below diagram). The n’th pentagonal… 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 »

October 28, 2016

Given a set of points as and a line as ax+by+c = 0. We need to find a point on given line for which sum… Read More »

October 10, 2016

Given starting and ending positions of segments on a line, the task is to take the union of all given segments and find length covered… Read More »

October 4, 2016

Given N point on a 2D plane as pair of (x, y) co-ordinates, we need to find maximum number of point which lie on the… Read More »

September 14, 2016

Consider a circle with n points on circumference of it where n is even. Count number of ways we can connect these points such that… Read More »

March 16, 2016

Given ordered coordinates of a polygon with n vertices. Find area of the polygon. Here ordered mean that the coordinates are given either in clockwise… Read More »