## Find square root of number upto given precision using binary search

Given a positive number n and precision p, find the square root of number upto p decimal places using binary search. Note : Prerequisite :… Read More »

Given a positive number n and precision p, find the square root of number upto p decimal places using binary search. Note : Prerequisite :… Read More »

Given an array, find the least frequent element in it. If there are multiple elements that appear least number of times, print any one of… Read More »

According to Midy’s theorem, if the period of a repeating decimal for , where p is prime and is a reduced fraction, has an even… Read More »

Given N integers and K, find the minimum number of elements that should be removed such that Amax-Amin<=K. After removal of elements, Amax and Amin… Read More »

Given number of digit n and a number, the task is to count all the numbers which are divisible by that number and having n… Read More »

Given an array, find the most frequent element in it. If there are multiple elements that appear maximum number of times, print any one of… Read More »

Find the sum up to n terms of the series: 1.2.3 + 2.3.4 + … + n(n+1)(n+2). In this 1.2.3 represent the first term and… Read More »

We are given the Integer n and also in the next line 2*n integers which represent a Arithmetic Progression series a1, a2, a3…a2n they are… Read More »

Given three matrices A, B and C, find if C is a product of A and B. Input : A = 1 1 1 1… Read More »

Given three integers A, B and N the task is to find N Geometric means between A and B. WE basically need to insert N… Read More »

Given multiple ranges [L, R] and a prime number p, we need to find all P-smooth numbers in given individual ranges. What is P –… Read More »

Given two positive integers N, M. The task is to find the number of strings of length N under the alphabet set of size M… Read More »

Given an array A of size N consisting of elements 1 to N. A boolean array B consisting of N-1 elements indicates that if B[i]… Read More »

Given two sorted arrays of distinct elements, we need to print those elements from both arrays that are not common. The output should be printed… Read More »

Given a sorted array of distinct positive integers, print all triplets that form AP (or Arithmetic Progression) Examples : Input : arr[] = { 2,… Read More »