Maximize the number of subarrays with XOR as zero
Given an array of N numbers. The task is to maximize the number of subarrays with XOR value zero by swapping the bits of array… Read More »
Given an array of N numbers. The task is to maximize the number of subarrays with XOR value zero by swapping the bits of array… Read More »
Given an array. The task is to find the length of the longest subsequence in which all elements must have at least one digit in… Read More »
Given two circles and a length K. Find whether we can join two points (one on perimeter of each circle), so that distance between the… Read More »
Given a set of ‘N’ digits. The task is to find the maximum integer that we can make from these digits. The resultant number must… Read More »
Given a number N containing digits from 1 to 9 only. The task is to generate a new number using the number N such that… Read More »
Given a positive integer n, the task is to check if it is Euclid Number or not. Print ‘YES’ if the given number is Euclid… Read More »
Given a positive integer n, the task is to check if it is a Wagstaff prime or not. Print ‘YES’ if the given number is… Read More »
Given a number N. The task is to count the minimum number of digits to be removed from the number so that no two consecutive… Read More »
Given two integers , . Find the number of rectangles of size 2*1 can be placed inside a rectangle of size n*m. Note: No two… Read More »
Given four numbers x, y, z, n. The task is to find the number of solutions for the equation x + y + z <=… Read More »
Given that all the angles of a quadrilateral are in AP having common difference ‘d’, the task is to find all the angles. Examples: Input:… Read More »
Given an integer ‘n’, the task is to find the sum of first ‘n’ prime numbers. First few prime numbers are: 2, 3, 5, 7,… Read More »
Given a string which consists of either ‘.’ or any number. A ‘.’ in the string means that the cell is empty and if there… Read More »
Given the value ‘N’ which is length of a number ‘A’. Your task is to convert the digits such that at least ‘K’ times in… Read More »
Given an array of size N and a sum, the task is to check whether some array elements can be added to sum to N… Read More »