Concentration of juice after mixing n glasses in equal proportion
Given an array arr[] where arr[i] is the concentration of juice in ith glass. The task is to find the concentration of the resultant mixture… Read More »
Given an array arr[] where arr[i] is the concentration of juice in ith glass. The task is to find the concentration of the resultant mixture… Read More »
Given an integer N. The task is to find the maximum possible sum of intermediate values (Including N and 1) attained after applying the beow… Read More »
Given three positive integers N, A and B. The task is to count the numbers of length N containing only digits A and B and… Read More »
Given an array arr[] of n integers and an integer k. The task is to make all the elements of arr[] equal with the given… Read More »
Given an array arr[] of integers. The task is to return the length of the maximum size sub-array such that either one of the condition… Read More »
Given a range [n, m], the task is to find the number of elements that have even number of factors in the given range (n… Read More »
Given two integers N and M which denote the number of persons of Type1 and Type2 respectively. The task is to find the maximum number… Read More »
Given an integer N. You can select any two digits from this number (the digits can be same but their positions should be different) and… Read More »
There are 6 persons seating on a round table in which two individual have the same names. What is the probability that the two same-named… Read More »
Given an integer M, an 8 * 8 chessboard and the king is placed on one of the square of the chessboard. Let the coordinate… Read More »
Given two positive integers N and M. The task is to find M-th number whose sum of digits of a number until sum becomes single… Read More »
Given an integer N, the task is to find out whether it can be written as a sum of 2 triangular numbers (which may or… Read More »
Given integers n, a, b and c, the task is to find the maximum value of x + y + z such that ax +… Read More »
Given two integers N and X. The task is to print the absolute difference between the first X and last X digits in N. Considering… Read More »
Given an array arr[], the task is to make all the array elements equal with the given operation. In a single operation, any element of… Read More »