## Nth non-Square number

Given n, find the nth number which is not a perfect square among natural numbers (1, 2, 3, 4, 5, 6, … ) Examples: Input… Read More »

Given n, find the nth number which is not a perfect square among natural numbers (1, 2, 3, 4, 5, 6, … ) Examples: Input… Read More »

Given a number N and the min and max range. Given N values of a and b respectively. The task is to count the number… Read More »

Given a string str, the task is to print the maximum count of characters which are greater than both its left and right character in… Read More »

Gradient Descent is an iterative optimiZation algorithm, used to find the minimum value for a function. The general idea is to initialize the parameters to… Read More »

Given the side of a Pentagon, the task is to find the area of the Pentagon. Examples: Input : a = 5 Output: Area of… Read More »

Given the side of a square. The task is to find the area of an inscribed circle in a square. Examples: Input : a =… Read More »

Given two integers and , where . Find the maximum number of one’s in a binary matrix can have such that every sub-matrix of size… Read More »

Given N positions, the task is to count the total number of ways to place X and Y such that no two X are together.… Read More »

Given an unsorted array of size n and an integer d which is the common difference, the task is to find the length of the… Read More »

Given three numbers a, b and m where 1<=a, m<=10^6. Given very large 'b' containing up to 10^6 digits and m is a prime number,… Read More »

Given an array of N integers. If a number occurs more than once, choose any number y from the array and replace the x in… Read More »

Given two numbers M and N, the task is to check if the M-th and N-th Fibonacci numbers perfectly divide each other or not. Examples:… Read More »

Given n points in a plane and no more than two points are collinear, the task is to count the number of triangles in a… Read More »

Prerequisite – PL/SQL introduction In PL/SQL code groups of commands are arranged within a block. A block group related declarations or statements. In declare part,… Read More »

We have discussed Floyd’s fast and slow pointer algorithms in Detect loop in a linked list. The algorithm is to start two pointers, slow and… Read More »