Skip to content

Tag Archives: square-root-decomposition

Given two integers A and B, the task is to convert the given two integers to zero at minimal cost by performing the following two… Read More
Given an integer N, the task is to find its perfect square root by repeated subtraction only.Examples:    Input: N = 25 Output: 5Input: N =… Read More
Given an array arr[] of integers and an array of queries, the task is to find the sum of product of every number and its… Read More
Given a number N, the task is to write a C program to find the square root of the given number N. Examples:  Input: N… Read More
Prerequisites: MO’s algorithm, SQRT DecompositionGiven an array arr[] of N elements and two integers A to B, the task is to answer Q queries each… Read More

Start Your Coding Journey Now!