Number of Larger Elements on right side in a string
Given a string, find count of number of larger alphabets for every character of the string. Examples: Input : str = “abcd” Output : 3… Read More »
Given a string, find count of number of larger alphabets for every character of the string. Examples: Input : str = “abcd” Output : 3… 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 »
Consider a pipe of length L. The pipe has N water droplets at N different positions within it. Each water droplet is moving towards the… Read More »
Given an array of N integers, find the difference between the summation of numbers whose frequency of all digits are same and different. For e.g.… Read More »
Given a rod of length L, the task is to cut the rod in such a way that the total number of segments of length… Read More »
Given start, end and an array of N numbers. At each step, start is multiplied with any number in the array and then mod operation… Read More »
Given K arrays of different size. The task is to check if there exist any two arrays which have the same sum of elements after… Read More »
Given an array of n elements and q range queries (range sum in this article) with no updates, task is to answer these queries with… Read More »
Given an array of N integers, the task is to find the number of operations required to make all elements in the array equal. In… Read More »
Given N number of elements, find the minimum number of swaps required so that the maximum element is at the beginning and the minimum element… Read More »
Given a grid with different colors in a different cell, each color represented by a different number. The task is to find out the largest… Read More »
In this article, we study an optimized way to calculate the distinct prime factorization up to n natural number using O O(n*log n) time complexity… Read More »
Given an array of N integers. The bitwise OR of all the elements of the array has to be maximized by performing one task. The… Read More »