Minimum number of operations required to sum to binary string S
Given a binary string S. Find the minimum number of operations required to be performed on the number zero to convert it to the number… Read More »
Given a binary string S. Find the minimum number of operations required to be performed on the number zero to convert it to the number… Read More »
Given a range represented by two positive integers L and R. Find the count of numbers in the range where the first digit is equal… Read More »
A string is called a N-copy string when it is formed by N copies of letter ‘G’. ie “GGGG” is a 4-copy string since it… Read More »
Given an array of N integers where array elements form a strictly decreasing and increasing sequence. The task is to find the smallest number in… Read More »
Given a string str and an array of strings strArr[], the task is to sort the array according to the alphabetical order defined by str.… Read More »
Given an array arr[] of integers, the task is to find the LCM of all the elements of the array modulo M where M =… Read More »
Given a range represented by two positive integers L and R. The task is to count the numbers from the range having GCD of powers… Read More »
Given a matrix of 2-Dimensional array of n rows and n columns. Print this matrix in snake fashion starting from column n-1 as shown in… Read More »
Given a matrix of 2-Dimensional array of n rows and n columns. Print this matrix in ZIG-ZAG fashion starting from column n-1 as shown in… Read More »
Given three integer A, B and N. The task is to find the sum of all the elements below N which are multiples of either… Read More »
Designed by Freepik Let us first clarify the question. There is not any easy way to become good at anything but there is an efficient… Read More »
Given two arrays of size N and two integers X and Y indicating the maximum number of elements one can pick from array A and… Read More »
Given an array of N positive elements find the number of quadruple, (i, j, k, m) such that i < j < k < m… Read More »
Given an integer N and an array arr containing integers from 1 to N in sorted fashion. The task is to reduce the array to… Read More »
Given an array of integers. The task is to find the maximum sum of all the elements of the array after performing the given two… Read More »