Given two integers N and M, the task is to find the vertex diagonally opposite to the Mth vertex of an N-sided polygon. Examples: Input:… Read More
Category Archives: Geometric
Given four integers L, B, l, and b, where L and B denote the dimensions of a bigger rectangle and l and b denotes the… Read More
Given three integers as X, Y, and Z representing the three sides of a triangle, the task is to check whether the triangle formed by… Read More
Given a matrix lines[][] of size N * 3, such that ith row denotes a line having the equation lines[i][0] * x + lines[i][1]*y =… Read More
Given the coordinates of any two vertices of a square (X1, Y1) and (X2, Y2), the task is to find the coordinates of the other… Read More
Given integers A, B, C, and D denoting the length of sides of a Cyclic Quadrilateral, the task is to find the circumradius i.e., the… Read More
Given a matrix arr[][] of size N * 3 such that each row consists of 3 properties defining an element, i.e. (x-coordinate, y-coordinate, speed), and… Read More
Given an array arr[] of N distinct integers points on the 2D Plane. The task is to count the number of Right-Angled Triangle from N… Read More
Given a regular polygon with N sides. The task is to find the count of polygons that can be drawn from the given polygon by… Read More
Given two integers A and X, denoting the length of a side of a rhombus and an angle respectively, the task is to find the… Read More
Given an array commands[], consisting of signed integers denoting distance and direction to be travelled along with the coordinates, and array obstacles[] denoting the coordinates… Read More
Given an array S[] consisting of the lengths of the 6 sides of a Hexagon, the task is to calculate the number of equilateral triangles… Read More
Given two integers a and b where a and b represents the length of adjacent sides of a parallelogram and an angle 0 between them,… Read More
Given two integers A and theta, denoting the length of a side of a rhombus and the vertex angle respectively, the task is to find… Read More