## Check whether the number can be made perfect square after adding 1

Given an integer N, the task is to check whether N the given number can be made a perfect square after adding 1 to it.… Read More »

## Number of Hamiltonian cycle

Given an undirected complete graph of N vertices where N > 2. The task is to find the number of different Hamiltonian cycle of the… Read More »

## Program to calculate the area between two Concentric Circles

Given two concentric circles with radius X and Y where (X > Y). Find the area between them. You are required to find the area… Read More »

## Find frequency of smallest value in an array

Given an array A of N elements. Find the frequency of the smallest value in the array. Examples: Input : N = 5, arr[] =… Read More »

## Count the number of pairs that have column sum greater than row sum

Given a matrix of size NxN. The task is to count the number of pair of indices (i, j) such that the sum of j-th… Read More »

## Shortest path on a Square

Given side of a square n and two points (x1, y1) and (x2, y2) on the boundaries of the given square. The task is to… Read More »

## Program to Assign grades to a student using Nested If Else

Given an integer array marks, which comprises of marks scored by a student (out of 100) in different subjects, the task is to assign a… Read More »

## Largest sphere that can be inscribed in a right circular cylinder inscribed in a frustum

Given here is a frustum of height h, top-radius r & base-radius R, which inscribes a right circular cylinder which in turn inscribes a sphere… Read More »

## Find the resulting Colour Combination

Given a String of three Colours(G, B, Y) as input, the task is to print the resultant combined colour formed according to the rule given… Read More »

## Biggest Reuleaux Triangle inscirbed within a square inscribed in a semicircle

Given here is a semicircle of radius r which inscribes a square which in turn inscribes a reuleaux triangle. The task is to find the… Read More »

## Biggest Reuleaux Triangle inscribed within a Square inscribed in an equilateral triangle

Given here is an equilateral triangle of sidelength a which inscribes a square which in turn inscribes a reuleaux triangle. The task is to find… Read More »

## Program for Area Of Square after N-th fold

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 »

## Program to check if two strings are same or not

Given two strings, the task is to check if these two strings are identical(same) or not. Examples: Input: string1 = “GeeksforGeeks”, string2 = “GeeksforGeeks” Output:… Read More »

## Area of a n-sided regular polygon with given Radius

Given a regular polygon of N sides with radius(distance from the center to any vertex) R. The task is to find the area of the… Read More »

## Area of a n-sided regular polygon with given side length

Given a regular polygon of N sides with side length a. The task is to find the area of the polygon. Examples: Input : N… Read More »